Learn to find this bug
A real bug bounty report, 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.
- hunters training
- 650
- labs from real reports
- 50
- completions
- 380
- in bounties practiced
- $200,000
hunters training
labs from real reports
completions
in bounties practiced
Access to all labs · no commitment · cancel anytime
Hunters who solved it· 8
Achievement you'll earn
Solve this lab to unlock this shareable achievement
OAuth Authorization Code Theft via Open Redirect
Community writeups
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
- Validar redirect_uri contra whitelist estricta
- Comparacion exacta de redirect_uri registradas
- No usar wildcards en URIs de redireccion