BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. Mass Assignment Privilege Escalation Lab
Easy45 min

Mass Assignment Privilege Escalation Lab

By @gorka

Aplicacion de gestion de tareas donde el endpoint de registro acepta el campo 'role' del body de la peticion sin filtrar, permitiendo registrarse directamente como administrador.

This hack was reported with no reward

1.3K views58 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

l3g10n_1
@l3g10n_8 days ago
JM2
@overtone10 days ago
moidlahoz023
@moidlahoz0210 days ago
lydiel
@lydiel22 days ago
espejoramirezhugo
@espejoramirezhugo24 days ago
gh0stn4m3sec
@gh0stn4m3secSep 2026
sharat chandra
@sharat chandraSep 2026
jose.medac
@jose.medacSep 2026

Objectives

1
Registrar una cuenta normal y observar la respuesta JSON
2
Notar que la respuesta incluye el campo 'role'
3
Enviar una peticion de registro incluyendo role: admin en el body
4
Verificar que la cuenta se creo con permisos de administrador
5
Acceder al panel de administracion

Information

Difficulty
Easy
Duration
45 min
Bounty
Sin recompensa
Completed
58
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Burp Suite

Prerequisites

  • Conocimiento basico de APIs REST
  • Saber modificar peticiones HTTP (body JSON)

Tags

API Abuse

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.

Credenciales

Usuario Contrasena Rol
alice password123 user
bob password123 user
charlie password123 user

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

Taskly es una aplicacion de gestion de tareas con categorias, prioridades, estados y feed publico de tareas.

La vulnerabilidad

El endpoint POST /api/auth/register lee req.body.role directamente sin filtrar. Si el campo no esta presente, usa 'user' por defecto, pero si el atacante lo incluye como 'admin', se crea la cuenta con privilegios de administrador.

Cadena de ataque

1. Registrarse normalmente → role: user
2. Observar la respuesta JSON (incluye role)
3. Repetir registro con role: admin en el body
4. Login → Acceso total al panel admin
5. Gestionar usuarios y tareas de todos

Solucion interactiva

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


Remediacion

  1. Nunca leer campos sensibles directamente del body del usuario
  2. Usar un whitelist de campos permitidos en el registro
  3. Hardcodear role: 'user' en el servidor
  4. Implementar DTOs (Data Transfer Objects) para filtrar campos de entrada

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.