EntornosRankingComunidadWriteupsPreciosGorka
Entrar
  1. Home
  2. Environments
  3. Wizard Takeover ATO ( IDOR + CSRF )

Wizard Takeover ATO ( IDOR + CSRF )

InsaneBBP · $1,500Real case · YesWeHackWith flag

Plataforma ficticia de memoriales para mascotas. El wizard de creación de 5 pasos se puede secuestrar anónimamente combinando IDs enumerables + ausencia de session binding + un token CSRF que el backend acepta literal (`"csrf-token"`). El atacante toma control del memorial, lee datos privados y recupera la flag Objective: capture the flag.

CSRFIDORBAC
Log in to startSee the environment

2,430 views · 18 completed · updated Nov 2026

Access

Learn to find this bug

A company paid $1,500 for this bug on YesWeHack.

Create your account and practise with real hacks. Download the environment, find the bug and learn the exact technique.

hunters training

hacking environments

environments solved

paid out for these bugs

Create account
I already have an account

Access to all environments · cancel the renewal anytime and keep what you paid for

Information

Platform
YesWeHack
Difficulty
Insane
Duration
45 min
Bounty
$1,500
Completed
18
Creator
@gorka
Collaborators
@antoniorivera
Updated
Nov 2026

The environment

ZIP with the environment and its autodeploy

You download it from here. Inside there's the environment and two scripts that start it for you, one per system.

autodeploy.shautodeploy.ps1
Create an account to download it

Only requirement: Docker

Nothing else. The autodeploy builds and starts the environment for you.

Autodeploy · one command

Linux and macOS

$./autodeploy.sh

Windows

PS>.\autodeploy.ps1

From inside the folder the ZIP creates. It prints the URL and credentials.

Objectives · the path, not the solution

  1. 01entender la app PetMemoria, identificar el wizard de 5 pasos y las URLs `/wizard/{id}/step/N`
  2. 02descubrir que los IDs del wizard son enumerables (`GET /api/wizard/:id/state` responde sin auth)
  3. 03confirmar que cualquier sesión anónima puede continuar el wizard de otro usuario
  4. 04inspeccionar el HTML del paso 5
  5. 05enviar el `POST /api/wizard/:id/step/5` cambiando `ownerEmail` a una dirección controlada
  6. 06recoger el link de edición en `/mailbox?email=<tu-email>
  7. 07abrir `/edit/:token` y extraer la flag de `favorite_memory`

Prerequisites

  • Docker + Docker Compose
  • Conociminetos sobre CSRF

Tools

  • Burp Suite
  • Navegador

Latest to solve it

  • @sharat chandraOct 2026
  • MA@maxioliveraSep 2026
  • @flyingwhalesAug 2026
  • @thamerop00Aug 2026
  • @zynapJul 2026
  • @kanekiJul 2026
  • @alndrwlaJul 2026
  • XL@xl4nJul 2026

The badge

Achievement you'll earn

Solve this environment to unlock this shareable achievement

Solve this environment 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.

Descripción del lab

PetMemoria es una plataforma SaaS ficticia donde los usuarios crean memoriales online
para sus mascotas fallecidas. La página pública muestra una galería de memoriales
publicados y permite crear uno propio a través de un wizard de 5 pasos:

  1. Paso 1: nombre, especie, raza.
  2. Paso 2: fechas de nacimiento/fallecimiento, foto preset.
  3. Paso 3: descripción / mensaje de despedida.
  4. Paso 4: rasgos de personalidad (chips multi-select), recuerdo favorito.
  5. Paso 5: email del dueño → recibe un link de edición para gestionar el memorial.

Para reducir la fricción ("permitimos retomar desde otro dispositivo sin login"), el
wizard no exige sesión y los IDs se incrementan en /wizard/{id}/step/N. El form
del paso 5 incluye un token CSRF que se renderiza con Stimulus en el frontend — pero
el backend nunca recibe el valor renderizado y acepta el string literal del placeholder.

Hay además un bot que crea memoriales pendientes cada ~20 segundos para dar vida al
lab. De vez en cuando, el bot crea un memorial llamado "Luna" que contiene la flag en
su campo favorite_memory. Como el memorial está en draft, no aparece en la galería
pública — pero sí se puede encontrar enumerando los IDs.

Cómo verificar

./autodeploy.sh deploy
python3 tests/verify.py       # 8/8 checks
python3 exploit.py            # captura la flag, exit 0
bash flag/verify.sh           # reproduce el md5

Flag

$ bash flag/verify.sh
preimage: petmemoria::luna::wizard_takeover::ywh_souvenirdesanimaux::2026
md5     : a808b4e95a1e9412f6c0ef0255ff65d7
flag    : FLAG{a808b4e95a1e9412f6c0ef0255ff65d7}
[OK] La flag esperada coincide.

Referencias

  • Reporte original anonimizado: souvenirdesanimaux.fr (YesWeHack disclosure).
  • CWE-352: https://cwe.mitre.org/data/definitions/352.html
  • CWE-639: https://cwe.mitre.org/data/definitions/639.html
  • CWE-287: https://cwe.mitre.org/data/definitions/287.html
  • OWASP A01:2021 — Broken Access Control.

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 Discord

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

Aprende hacking con entornos que replican hackeos reales.

Producto

  • Entornos
  • Hacker Roadmap
  • Arena · ranking
  • Precios
  • Empresas

Aprender

  • Aprender desde 0
  • Academy
  • Blog
  • Writeups
  • Crew · Discord

Más

  • Gorka
  • Términos
  • Privacidad
  • Cookies
  • team@bblabs.es
© 2026 BBLABS · Hecho en Españalabs.bblabs.escrew.bblabs.esacademy.bblabs.esarena.bblabs.esblog.bblabs.esbugbounty.bblabs.esteams.bblabs.es