EntornosRankingComunidadWriteupsPreciosGorka
Entrar
  1. Home
  2. Environments
  3. CSRF que Escala Self-XSS a Stored XSS

CSRF que Escala Self-XSS a Stored XSS

HardOriginalNo flag

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. No flag: you mark it as completed when you're done.

CSRF
Log in to startSee the environment

885 views · 9 completed · updated Nov 2026

Access

Learn to find this bug

An environment built to train this technique, step by step.

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

Difficulty
Hard
Duration
55 min
Bounty
Not applicable
Completed
9
Creator
@gorka
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. 01Descubrir que las notas privadas renderizan HTML (Self-XSS)
  2. 02Identificar que el endpoint de perfil no tiene proteccion CSRF
  3. 03Observar que las cookies usan SameSite=None
  4. 04Crear un CSRF PoC que lea el perfil de la victima y luego inyecte XSS
  5. 05Demostrar la escalacion de Self-XSS a Stored XSS via CSRF

Prerequisites

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

Tools

  • Navegador
  • Editor HTML

Latest to solve it

  • @sharat chandraOct 2026
  • @vazquezdv182005Aug 2026
  • @flyingwhalesJul 2026
  • AL@alex.burja.2000Jul 2026
  • @w4tchw0lfJun 2026
  • @pl4nktonJun 2026
  • @gorkaApr 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.

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 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