BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. SSRF via HTML Injection in PDF Generation
Hard45 min

SSRF via HTML Injection in PDF Generation

By @gorka

Plataforma de archivos donde la generacion de facturas PDF usa Puppeteer para renderizar HTML. El campo de direccion acepta HTML raw, permitiendo inyectar un iframe al servicio de admin interno.

This hack was reported with no reward

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

sharat chandra1
@sharat chandraOct 2026
itrox2
@itroxJul 2026
flyingwhales3
@flyingwhalesJul 2026
alndrwla
@alndrwlaJul 2026
AL
@alex.burja.2000Jul 2026
SU
@suraxddqJun 2026
gorka
@gorkaJun 2026
pl4nkton
@pl4nktonJun 2026

Objectives

1
Comprar un producto y generar factura PDF
2
Descubrir que el campo address se renderiza como HTML en el PDF
3
Inyectar un iframe apuntando a http://127.0.0.1:9999
4
Descargar el PDF con el contenido del admin panel interno

Information

Difficulty
Hard
Duration
45 min
Bounty
Sin recompensa
Completed
15
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Burp SuiteNavegador

Prerequisites

  • SSRF avanzado
  • HTML injection
  • Conocimiento de generacion de PDFs server-side

Tags

SSRF

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

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

Para parar:

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

Contenido del Lab

La aplicacion

FileForge con e-commerce, facturacion PDF (Puppeteer) y servicio de administracion interno en puerto 9999.

La vulnerabilidad

La factura PDF se genera con Puppeteer renderizando HTML. El campo de direccion del usuario se inserta como HTML raw (sin sanitizar). Inyectando <iframe src="http://127.0.0.1:9999"> se fuerza a Puppeteer a cargar el admin panel interno dentro del PDF.

Cadena de ataque

1. Registrarse y editar perfil
2. Poner como direccion: <iframe src=\"http://127.0.0.1:9999\" width=\"100%\" height=\"600\">
3. Comprar producto → generar factura
4. Descargar PDF → admin panel visible
5. Flag en el panel de administracion

Solucion interactiva

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


Flag

e10adc3949ba59abbe56e057f20f883e

Remediacion

  1. Sanitizar HTML en todos los campos antes de renderizar
  2. No usar Puppeteer para renderizar datos de usuario sin sanitizar
  3. Bloquear acceso a red interna desde el renderizador
  4. Usar templates con datos escapados

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.