BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. OAuth Authorization Code Theft via Open Redirect
Medium30 min

OAuth Authorization Code Theft via Open Redirect

By @gorka

E-commerce con proveedor OAuth falso que acepta cualquier redirect_uri, permitiendo robar el codigo de autorizacion via redireccion abierta.

This hack was reported with no reward

783 views23 completedUpdated Nov 2026
Log in to start

Learn to find this bug

A real hack, reproduced for you to practice.

Create your account and practice real bugs that got paid. Download the environment, find it and learn the exact technique — your path to your first bounty.

650

hunters training

50

labs from real hacks

380

completions

$12,000

paid out for these bugs

40 flags captured this week
Create account
I already have an account

Access to all labs · no commitment · cancel anytime

Hackers who solved it· 8

noniná_sec1
@noniná_sec5 days ago
espejoramirezhugo2
@espejoramirezhugo19 days ago
sharat chandra3
@sharat chandraOct 2026
pippen_3
@pippen_3Sep 2026
emperador
@emperadorSep 2026
r00thor
@r00thorSep 2026
bizedtv
@bizedtvSep 2026
3nk1
@3nk1Aug 2026

Objectives

1
Entender el flujo OAuth de la aplicacion
2
Descubrir que el proveedor OAuth no valida redirect_uri
3
Crafear una URL con redirect_uri apuntando a sitio externo
4
Interceptar el codigo de autorizacion

Information

Difficulty
Medium
Duration
30 min
Bounty
Sin recompensa
Completed
23
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

NavegadorBurp SuiteServidor web

Prerequisites

  • Flujo OAuth 2.0 (Authorization Code)
  • Open Redirect
  • Manipulacion de URLs

Tags

Open Redirect

Achievement you'll earn

Solve this lab to unlock this shareable achievement

Solve this lab to unlock this shareable achievement

Community writeups

Free · no account

The checklist I run on every new target

47 checks ordered by cost: first what can get you in trouble, then the cheap stuff, and finally the expensive stuff — which is where the big bounties are. I'll send it to your inbox right now.

Unsubscribe in one click, from any email.

Despliegue

# Opcion 1: autodeploy
./autodeploy.sh

# Opcion 2: manual
docker compose up --build

# Acceder
http://localhost:2003

Compatible con macOS, Linux y Windows (Docker Desktop / WSL).

Para parar:

./autodeploy.sh destroy
# o: docker compose down -v

Contenido del Lab

La aplicacion

SkyHaven con autenticacion OAuth y un proveedor de identidad simulado.

La vulnerabilidad

El endpoint /oauth/authorize acepta redirect_uri sin validar contra una whitelist. El atacante puede especificar su propio servidor como destino y recibir el codigo de autorizacion de la victima.

Cadena de ataque

1. Analizar flujo OAuth normal
2. Modificar redirect_uri a https://attacker.com/callback
3. Enviar link a victima
4. Victima autoriza → codigo enviado a attacker
5. Usar codigo para obtener token de acceso

Solucion interactiva

Accede a /writeup dentro de la aplicacion para una guia paso a paso con botones interactivos.


Flag

(codigo de autorizacion OAuth robado)

Remediacion

  1. Validar redirect_uri contra whitelist estricta
  2. Comparacion exacta de redirect_uri registradas
  3. No usar wildcards en URIs de redireccion

The community

This isn't a platform with users.It's people breaking the same things you are.

Inside people ask, share what they found and solve together what would block anyone on their own. It's free to join: no account, no plan, no email required.

Join the BBLABS community on Discord
Join the Discord

Free and open. You don't need a BBLABS account to join.

BBLABS LogoBBLABS

Laboratorios de hacking basados en hackeos reales. Aprende practicando sobre entornos vulnerables, con la resolución explicada paso a paso.

Producto

  • Funcionalidades
  • Precios
  • Labs
  • Aprender desde 0
  • Blog
  • Detrás de BBLABS

Legal

  • Términos
  • Privacidad
  • Cookies
  • Entrar
  • Crear cuenta

Para cualquier duda, bug, soporte o sugerencia puedes escribir a team@bblabs.es

© 2026 BBLABS. Todos los derechos reservados.