EntornosRankingComunidadWriteupsPreciosGorka
Entrar
  1. Home
  2. Environments
  3. OAuth Authorization Code Theft via Open Redirect

OAuth Authorization Code Theft via Open Redirect

MediumOriginalNo flag

E-commerce con proveedor OAuth falso que acepta cualquier redirect_uri, permitiendo robar el codigo de autorizacion via redireccion abierta. No flag: you mark it as completed when you're done.

Open Redirect
Log in to startSee the environment

943 views · 24 completed · updated Nov 2026

Access

Learn to find this bug

An environment built to train this technique, step by step.

Create your account and practise with real hacks. Download the environment, find the bug and learn the exact technique.

hunters training

hacking environments

environments solved

paid out for these bugs

Create account
I already have an account

Access to all environments · cancel the renewal anytime and keep what you paid for

Information

Difficulty
Medium
Duration
30 min
Bounty
Not applicable
Completed
24
Creator
@gorka
Updated
Nov 2026

The environment

ZIP with the environment and its autodeploy

You download it from here. Inside there's the environment and two scripts that start it for you, one per system.

autodeploy.shautodeploy.ps1
Create an account to download it

Only requirement: Docker

Nothing else. The autodeploy builds and starts the environment for you.

Autodeploy · one command

Linux and macOS

$./autodeploy.sh

Windows

PS>.\autodeploy.ps1

From inside the folder the ZIP creates. It prints the URL and credentials.

Objectives · the path, not the solution

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

Prerequisites

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

Tools

  • Navegador
  • Burp Suite
  • Servidor web

Latest to solve it

  • @elc0ket19 days ago
  • @noniná_secOct 2026
  • @espejoramirezhugoOct 2026
  • @sharat chandraOct 2026
  • @pippen_3Sep 2026
  • @emperadorSep 2026
  • @r00thorSep 2026
  • @bizedtvSep 2026

The badge

Achievement you'll earn

Solve this environment to unlock this shareable achievement

Solve this environment 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 Discord

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

Aprende hacking con entornos que replican hackeos reales.

Producto

  • Entornos
  • Hacker Roadmap
  • Arena · ranking
  • Precios
  • Empresas

Aprender

  • Aprender desde 0
  • Academy
  • Blog
  • Writeups
  • Crew · Discord

Más

  • Gorka
  • Términos
  • Privacidad
  • Cookies
  • team@bblabs.es
© 2026 BBLABS · Hecho en Españalabs.bblabs.escrew.bblabs.esacademy.bblabs.esarena.bblabs.esblog.bblabs.esbugbounty.bblabs.esteams.bblabs.es