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
Race Condition in Vote/Review System
Community writeups
Despliegue
# Opcion 1: autodeploy
./autodeploy.sh
# Opcion 2: manual
docker compose up --build
# Acceder
https://localhost:1000
Compatible con macOS, Linux y Windows (Docker Desktop / WSL).
Para parar:
./autodeploy.sh destroy
# o: docker compose down -v
Contenido del Lab
La aplicacion
TrustMart es un marketplace con sistema de votos (like/dislike) y reviews con estrellas.
La vulnerabilidad
Los endpoints de votar (POST /api/products/:id/vote) y review (POST /api/reviews/product/:id) verifican si el usuario ya voto/reviewo con delay antes de registrar la accion. Peticiones concurrentes bypasean el check de unicidad.
Cadena de ataque
1. Votar normalmente → 1 voto registrado
2. Intentar votar de nuevo → bloqueado
3. Enviar 50 votos dislike concurrentes → todos pasan
4. Enviar 15 reviews 1-estrella concurrentes
5. Reputacion del producto destruida
Solucion interactiva
Accede a /writeup dentro de la aplicacion para una guia paso a paso con botones interactivos.
Flag
(reputacion del producto destruida)
Remediacion
- UNIQUE constraint en la base de datos (user_id + product_id)
- Transacciones atomicas
- INSERT ... ON CONFLICT DO NOTHING