BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. IDOR + CORS Chain Attack
Hard45 min

IDOR + CORS Chain Attack

By @gorka

Plataforma de pedidos donde una combinacion de IDOR (acceso a pedidos ajenos) y CORS misconfiguration (reflejo de origen) permite exfiltrar datos de pedidos de otros usuarios via un ataque encadenado

$50

That's what a company paid for this bug on YesWeHack. Here it is, rebuilt for you to find it yourself.

929 views23 completedUpdated Nov 2026
Log in to start

Learn to find this bug

This bug paid $50 on YesWeHack.

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

kyzk31
@kyzk324 days ago
sharat chandra2
@sharat chandraOct 2026
bizedtv3
@bizedtvSep 2026
CR
@crashSep 2026
benjaminnocervigni
@benjaminnocervigniAug 2026
flyingwhales
@flyingwhalesJul 2026
kaneki
@kanekiJul 2026
AL
@alex.burja.2000Jul 2026

Objectives

1
Descubrir IDOR en el endpoint de datos de pedidos
2
Identificar que CORS refleja cualquier origen con credenciales
3
Crear un PoC que encadene CORS + IDOR
4
Exfiltrar los datos del pedido del admin que contiene la flag

Information

Platform
YesWeHack
Difficulty
Hard
Duration
45 min
Bounty
$50
Completed
23
Creator
gorka@gorka
Collaborators
antoniorivera@antoniorivera
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Burp Suite

Prerequisites

  • IDOR avanzado
  • Configuracion CORS y politicas de origen
  • JavaScript para PoC de exfiltracion

Tags

IDORBusiness Logic

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
http://localhost:1900

Compatible con macOS, Linux y Windows (Docker Desktop / WSL).

Para parar:

./autodeploy.sh destroy
# o: docker compose down -v

Contenido del Lab

La aplicacion

SecureVision es una plataforma de pedidos con reviews de productos y un bot admin que visita las reviews.

La vulnerabilidad

POST /api/orders/getData verifica autenticacion pero NO verifica que el pedido pertenezca al usuario (IDOR). Ademas, el servidor refleja el header Origin en Access-Control-Allow-Origin con credentials: true, permitiendo peticiones cross-origin autenticadas.

Cadena de ataque

1. Registrarse y hacer un pedido
2. Descubrir IDOR: acceder a pedidos de otros
3. Descubrir CORS: Origin reflejado con credentials
4. Crear PoC JS que usa CORS para leer pedidos
5. Publicar review con link al PoC
6. Bot admin visita → PoC exfiltra IDs de pedidos
7. Usar IDs para leer datos del admin → Flag

Solucion interactiva

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


Flag

4a8a08f09d37b73795649038408b5f33

Remediacion

  1. Verificar que el usuario es dueno del recurso (fix IDOR)
  2. No reflejar Origin arbitrariamente en CORS
  3. Whitelist de origenes permitidos
  4. No enviar credentials en CORS cross-origin

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.