IDOR via Predictable Checkout IDs
E-commerce de lujo donde los IDs de checkout son numericos de 4 digitos y no requieren autenticacion para acceder, permitiendo bruteforcear los 10.000 posibles IDs y encontrar datos sensibles.
Learn to find this bug
This bug paid $500 on HackerOne.
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
IDOR via Predictable Checkout IDs
Community writeups
Despliegue
# Opcion 1: autodeploy
./autodeploy.sh
# Opcion 2: manual
docker compose up --build
# Acceder
http://localhost:1800
Compatible con macOS, Linux y Windows (Docker Desktop / WSL).
Para parar:
./autodeploy.sh destroy
# o: docker compose down -v
Contenido del Lab
La aplicacion
LuxeCart es un e-commerce de productos de lujo con sistema de checkout que genera URLs con IDs numericos de 4 digitos.
La vulnerabilidad
Los checkouts usan IDs numericos secuenciales de 4 digitos (0000-9999). El endpoint GET /api/checkout/:id devuelve datos completos del comprador (nombre, email, telefono, PII) sin requerir autenticacion ni verificar la propiedad.
Cadena de ataque
1. Hacer una compra → obtener URL de checkout
2. Notar el ID de 4 digitos
3. Script para bruteforcear 0000-9999
4. Encontrar checkouts validos con PII
5. ID 7456 → checkout del admin con flag
Solucion interactiva
Accede a /writeup dentro de la aplicacion para una guia paso a paso con botones interactivos.
Remediacion
- Usar UUIDs en vez de IDs secuenciales
- Requerir autenticacion para acceder a checkouts
- Verificar propiedad del recurso
- Rate limiting en endpoints sensibles