BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. Path Traversal via Invoice Download
Medium30 min

Path Traversal via Invoice Download

By @gorka

Foro con sistema de pedidos donde el parametro file del endpoint de descarga de facturas permite path traversal para leer archivos arbitrarios del servidor.

This hack was reported with no reward

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

emperador1
@emperador19 days ago
sharat chandra2
@sharat chandraOct 2026
3nk13
@3nk1Sep 2026
bizedtv
@bizedtvSep 2026
l1ghtn1ng
@l1ghtn1ngAug 2026
vazquezdv182005
@vazquezdv182005Aug 2026
flyingwhales
@flyingwhalesJul 2026
r4mattra
@r4mattraJul 2026

Objectives

1
Encontrar el endpoint de descarga de facturas
2
Identificar el parametro ?file= en la URL
3
Manipular el valor con ../../../etc/passwd
4
Leer archivos del sistema

Information

Difficulty
Medium
Duration
30 min
Bounty
Sin recompensa
Completed
18
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Burp SuiteNavegador

Prerequisites

  • Path traversal basico
  • Manipulacion de parametros de URL

Tags

Path Traversal

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

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

Para parar:

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

Contenido del Lab

La aplicacion

ZeroDay Forum con sistema de pedidos y descarga de facturas.

La vulnerabilidad

El endpoint /api/orders/download?file=invoice.pdf no sanitiza el parametro file, permitiendo ?file=../../../../etc/passwd para leer archivos arbitrarios.

Cadena de ataque

1. Hacer un pedido y descargar factura
2. Observar URL: /api/orders/download?file=invoice_123.pdf
3. Cambiar a: ?file=../../../../etc/passwd
4. Obtener contenido del archivo del sistema

Solucion interactiva

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


Flag

(contenido de /etc/passwd o archivos del servidor)

Remediacion

  1. Usar path.basename() para sanitizar el nombre de archivo
  2. Verificar que la ruta final esta dentro del directorio de facturas
  3. Usar IDs de base de datos en vez de nombres de archivo
  4. Bloquear secuencias ../ en los parametros

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.