EntornosRankingComunidadWriteupsPreciosGorka
Entrar
  1. Home
  2. Environments
  3. Broken Function Level Authorization

Broken Function Level Authorization

MediumOriginalWith flag

Aplicacion de notas con endpoints administrativos que no validan correctamente el metodo HTTP. El desarrollador protegio GET/PUT/POST pero olvido proteger PATCH en el endpoint de cambio de contrasena, permitiendo cambiar la contrasena de cualquier usuario sin autenticacion de admin. Objective: capture the flag.

API Abuse
Log in to startSee the environment

969 views · 21 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
Medium
Duration
20 min
Bounty
Not applicable
Completed
21
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 los endpoints de la API mediante el endpoint de descubrimiento
  2. 02Identificar que el endpoint /api/changepassword acepta multiples metodos HTTP
  3. 03Encontrar que PATCH no tiene middleware de autenticacion
  4. 04Cambiar la contrasena del administrador via PATCH
  5. 05Acceder al panel de administracion con las credenciales modificadas

Prerequisites

  • Conocimientos de metodos HTTP (GET, POST, PUT, PATCH, DELETE)
  • Uso basico de curl o Burp Suite
  • Entender APIs REST y control de acceso

Tools

  • Burp Suite
  • DevTools

Latest to solve it

  • @emperadorOct 2026
  • @sharat chandraOct 2026
  • @3nk1Sep 2026
  • @lmarco83Sep 2026
  • @zynapAug 2026
  • @vazquezdv182005Aug 2026
  • @flyingwhalesJul 2026
  • @r4mattraJul 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.

Credenciales

Usuario Contrasena Rol
sarah password123 user
marcus password123 user
elena password123 user

Despliegue

# Opcion 1: autodeploy
./autodeploy.sh

# Opcion 2: manual
docker compose up --build

# Acceder
https://localhost:1001

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

Para parar:

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

Contenido del Lab

La aplicacion

NoteVault es una aplicacion de notas personales con sistema de notas compartidas, feed publico y panel de administracion. Los usuarios pueden crear, editar y compartir notas.

La vulnerabilidad

El endpoint /api/changepassword esta protegido con authMiddleware y adminMiddleware para los metodos PUT y POST, pero el desarrollador olvido anadir los middlewares para el metodo PATCH. Esto permite a cualquier usuario autenticado cambiar la contrasena de cualquier otro usuario.

Cadena de ataque

1. Registrarse y explorar la app
2. Descubrir /api → lista de endpoints
3. Probar PUT /api/changepassword → 403
4. Probar PATCH /api/changepassword → Funciona sin admin!
5. Cambiar contrasena del admin
6. Login como admin → Panel administrativo
7. Flag en el dashboard

Solucion interactiva

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


Flag

5f4dcc3b5aa765d61d8327deb882cf99

Remediacion

  1. Aplicar middlewares de autorizacion a TODOS los metodos HTTP del endpoint
  2. Usar router.all() o app.use() para aplicar middleware a nivel de ruta completa
  3. Implementar tests de autorizacion para cada metodo HTTP
  4. Auditar regularmente los middlewares de cada endpoint

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