BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. Stored XSS in Post Body
Easy10 min

Stored XSS in Post Body

By @gorka

Red social donde el cuerpo de los posts se renderiza con dangerouslySetInnerHTML, permitiendo XSS persistente que afecta a todos los usuarios que ven el post.

This hack was reported with no reward

2.5K views138 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

cierraelbimbollo1
@cierraelbimbollo3 days ago
fl02
@fl04 days ago
oscarbusreal3
@oscarbusreal5 days ago
l3g10n_
@l3g10n_9 days ago
krextha
@krextha10 days ago
0xn1sec
@0xn1sec11 days ago
joaquinlemonge
@joaquinlemonge12 days ago
m27580928
@m2758092816 days ago

Objectives

1
Crear un post con HTML en el cuerpo
2
Verificar que el HTML se renderiza sin escapar
3
Inyectar JavaScript que se ejecuta para todos los visitantes

Information

Difficulty
Easy
Duration
10 min
Bounty
Sin recompensa
Completed
138
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Navegador

Prerequisites

  • XSS stored basico
  • HTML basico

Tags

XSS

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: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 con posts que soportan HTML en el cuerpo.

La vulnerabilidad

El cuerpo del post se renderiza con dangerouslySetInnerHTML sin sanitizacion. Cualquier HTML/JavaScript inyectado se ejecuta para todos los usuarios.

Cadena de ataque

1. Crear post con body: <img src=x onerror=alert('XSS')>
2. Publicar
3. Todos los que ven el post → XSS ejecutado

Solucion interactiva

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


Flag

(XSS persistente ejecutado)

Remediacion

  1. Sanitizar HTML con DOMPurify antes de renderizar
  2. Usar textContent o React JSX nativo
  3. CSP estricto

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.