Open Redirect in Checkout Flow
E-commerce donde el flujo de checkout acepta un parametro redirect_url sin validacion, permitiendo redirigir al usuario a un sitio malicioso tras la compra.
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 Checkout Flow
Community writeups
Despliegue
# Opcion 1: autodeploy
./autodeploy.sh
# Opcion 2: manual
docker compose up --build
# Acceder
http://localhost:2002
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 es un e-commerce con flujo de checkout que redirige al usuario tras completar la compra.
La vulnerabilidad
POST /api/checkout acepta redirect_url sin validacion. Cualquier URL (incluidas externas) se usa como destino de redireccion.
Cadena de ataque
1. Completar checkout normal → redireccion a /thank-you
2. Interceptar y cambiar redirect_url a https://evil.com
3. Victima completa compra → redirigida a sitio malicioso
Solucion interactiva
Accede a /writeup dentro de la aplicacion para una guia paso a paso con botones interactivos.
Flag
(redireccion exitosa a sitio externo)
Remediacion
- Validar que la URL de redireccion es relativa o pertenece al dominio
- Whitelist de URLs de redireccion permitidas
- No aceptar URLs absolutas como parametro