BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. CSRF que Escala Self-XSS a Stored XSS
Hard55 min

CSRF que Escala Self-XSS a Stored XSS

By @gorka

Red social donde las notas privadas permiten HTML (Self-XSS) y el endpoint de perfil es vulnerable a CSRF. Encadenando ambos, el atacante inyecta XSS persistente en el perfil de la victima.

This hack was reported with no reward

646 views9 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· 7

sharat chandra1
@sharat chandraOct 2026
vazquezdv1820052
@vazquezdv182005Aug 2026
flyingwhales3
@flyingwhalesJul 2026
AL
@alex.burja.2000Jul 2026
w4tchw0lf
@w4tchw0lfJun 2026
pl4nkton
@pl4nktonJun 2026
gorka
@gorkaApr 2026

Objectives

1
Descubrir que las notas privadas renderizan HTML (Self-XSS)
2
Identificar que el endpoint de perfil no tiene proteccion CSRF
3
Observar que las cookies usan SameSite=None
4
Crear un CSRF PoC que lea el perfil de la victima y luego inyecte XSS
5
Demostrar la escalacion de Self-XSS a Stored XSS via CSRF

Information

Difficulty
Hard
Duration
55 min
Bounty
Sin recompensa
Completed
9
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

NavegadorEditor HTML

Prerequisites

  • Conocimientos de CSRF y SameSite cookies
  • XSS basico (stored vs self)
  • HTML/JavaScript para crear PoC

Tags

CSRF

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

Chirp es una red social con posts, perfil editable y notas privadas que soportan HTML.

La vulnerabilidad

Las notas privadas renderizan HTML sin sanitizar (Self-XSS, solo afecta al propio usuario). El endpoint de actualizacion de perfil no tiene token CSRF y usa cookies SameSite=None. Combinando ambos: CSRF fuerza la escritura de XSS en las notas de la victima → Stored XSS.

Cadena de ataque

1. Encontrar Self-XSS en notas privadas
2. Descubrir que el perfil no tiene CSRF token
3. Verificar SameSite=None en cookies
4. Crear PoC HTML que haga CSRF al perfil
5. Inyectar payload XSS via CSRF
6. Victima visita su perfil → XSS ejecutado

Solucion interactiva

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


Flag

(XSS ejecutado en contexto de la victima)

Remediacion

  1. Implementar tokens anti-CSRF en todos los formularios
  2. Usar SameSite=Strict o Lax en cookies
  3. Sanitizar HTML en notas privadas
  4. Content-Security-Policy con nonces

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.