BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. Race Condition in Plan Coupon Limits
Medium25 min

Race Condition in Plan Coupon Limits

By @gorka

Plataforma de cupones donde cada plan (Free/Pro/Premium) tiene un limite de cupones canjeables. Race condition permite superar el limite enviando peticiones concurrentes para diferentes cupones

This hack was reported with no reward

909 views20 completedUpdated Nov 2026
Log in to start

Learn to find this bug

A real hack, 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.

650

hunters training

50

labs from real hacks

380

completions

$12,000

paid out for these bugs

40 flags captured this week
Create account
I already have an account

Access to all labs · no commitment · cancel anytime

Hackers who solved it· 8

r00thor1
@r00thor28 days ago
sharat chandra2
@sharat chandraOct 2026
bizedtv3
@bizedtvSep 2026
emperador
@emperadorSep 2026
3nk1
@3nk1Sep 2026
alumnofing31
@alumnofing31Aug 2026
blackcloudsecurity
@blackcloudsecurityAug 2026
danielmijan11
@danielmijan11Aug 2026

Objectives

1
Entender el sistema de planes y limites
2
Identificar que el check de limite tiene delay
3
Enviar peticiones concurrentes para diferentes cupones
4
Superar el limite del plan Free (2 cupones)

Information

Difficulty
Medium
Duration
25 min
Bounty
Sin recompensa
Completed
20
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Burp Suite

Prerequisites

  • Race conditions
  • Peticiones concurrentes

Tags

Race Condition

Achievement you'll earn

Solve this lab to unlock this shareable achievement

Solve this lab to unlock this shareable achievement

Community writeups

Free · no account

The checklist I run on every new target

47 checks ordered by cost: first what can get you in trouble, then the cheap stuff, and finally the expensive stuff — which is where the big bounties are. I'll send it to your inbox right now.

Unsubscribe in one click, from any email.

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

DealZone es una plataforma de cupones con planes de suscripcion que limitan la cantidad de cupones canjeables.

La vulnerabilidad

POST /api/coupons/:id/claim verifica el total de cupones canjeados contra el limite del plan con un delay antes de completar el canjeo. Peticiones concurrentes para diferentes cupones pasan todas el check.

Cadena de ataque

1. Login como alice (Free, limite 2)
2. Listar cupones disponibles (12 cupones)
3. Enviar 12 peticiones concurrentes (una por cupon)
4. Todas pasan el check del limite
5. Resultado: 12 cupones canjeados con plan Free

Solucion interactiva

Accede a /writeup dentro de la aplicacion para una guia paso a paso con botones interactivos.


Flag

(mas cupones canjeados que el limite del plan)

Remediacion

  1. Transacciones atomicas con bloqueo de fila
  2. Incremento atomico del contador de cupones
  3. Verificacion post-commit del limite

The community

This isn't a platform with users.It's people breaking the same things you are.

Inside people ask, share what they found and solve together what would block anyone on their own. It's free to join: no account, no plan, no email required.

Join the BBLABS community on Discord
Join the Discord

Free and open. You don't need a BBLABS account to join.

BBLABS LogoBBLABS

Laboratorios de hacking basados en hackeos reales. Aprende practicando sobre entornos vulnerables, con la resolución explicada paso a paso.

Producto

  • Funcionalidades
  • Precios
  • Labs
  • Aprender desde 0
  • Blog
  • Detrás de BBLABS

Legal

  • Términos
  • Privacidad
  • Cookies
  • Entrar
  • Crear cuenta

Para cualquier duda, bug, soporte o sugerencia puedes escribir a team@bblabs.es

© 2026 BBLABS. Todos los derechos reservados.