Open Redirect in Login/Logout
E-commerce con parametros login_url y logout_url que redirigen sin validacion tras autenticacion, usables para phishing.
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
Objectives
Achievement you'll earn
Solve this lab to unlock this shareable achievement
Open Redirect in Login/Logout
Community writeups
Despliegue
# Opcion 1: autodeploy
./autodeploy.sh
# Opcion 2: manual
docker compose up --build
# Acceder
http://localhost:2000
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 e-commerce con login y logout que soportan URL de redireccion.
La vulnerabilidad
El login acepta ?login_url= (POST-based redirect despues del login) y logout acepta ?logout_url= (GET-based redirect). Ninguno valida el destino.
Cadena de ataque
1. Crafear URL: /login?login_url=https://evil.com
2. Victima hace login → redirigida a evil.com
3. Alternativa: /api/auth/logout?logout_url=https://evil.com
Solucion interactiva
Accede a /writeup dentro de la aplicacion para una guia paso a paso con botones interactivos.
Flag
(redireccion exitosa)
Remediacion
- Validar URLs de redireccion contra whitelist
- Solo aceptar paths relativos
- Alertar al usuario antes de redireccion externa