BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. Client-Side Role Bypass + Missing Server RBAC
Medium35 min

Client-Side Role Bypass + Missing Server RBAC

By @gorka

Plataforma de ranking de hackers donde el rol del usuario se controla desde el cliente. Modificando la respuesta del servidor con Burp Suite (Match & Replace) se puede escalar a admin y cambiar la contrasena del super-hacker

This hack was reported with no reward

783 views27 completedUpdated Nov 2026
Log in to start

Learn to find this bug

A real HackerOne 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

r00thor1
@r00thor28 days ago
sharat chandra2
@sharat chandraOct 2026
bizedtv3
@bizedtvSep 2026
emperador
@emperadorSep 2026
3nk1
@3nk1Sep 2026
zynap
@zynapAug 2026
benjaminnocervigni
@benjaminnocervigniAug 2026
vazquezdv182005
@vazquezdv182005Aug 2026

Objectives

1
Registrarse y observar que la respuesta contiene role: user
2
Usar Burp Match & Replace para cambiar role: user por role: admin en las respuestas
3
Acceder al panel de administracion que ahora aparece en la interfaz
4
Descubrir que los endpoints de admin no validan el rol en el servidor
5
Cambiar la contrasena del usuario thebesthacker para obtener la flag

Information

Platform
HackerOne
Difficulty
Medium
Duration
35 min
Bounty
Sin recompensa
Completed
27
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Burp SuiteNavegador

Prerequisites

  • Uso basico de Burp Suite (Match & Replace)
  • Entender la diferencia entre validacion client-side y server-side

Tags

Business Logic

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

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

Para parar:

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

Contenido del Lab

La aplicacion

CyberRank es una plataforma de ranking de hackers con leaderboard, panel de administracion y un super-hacker panel secreto.

La vulnerabilidad

El servidor envia role: user en las respuestas de autenticacion y el frontend muestra/oculta secciones basandose en ese valor. Sin embargo, los endpoints de admin (/api/admin/*) no verifican el rol del usuario en el servidor, confiando unicamente en el cliente.

Cadena de ataque

1. Registrarse → role: user
2. Burp → Match & Replace: role.*user → role.*admin
3. Refrescar → Panel admin visible
4. GET /api/admin/users → Lista usuarios (funciona sin ser admin!)
5. Cambiar contrasena de thebesthacker
6. Login como thebesthacker → Flag

Solucion interactiva

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


Remediacion

  1. Validar roles en el SERVIDOR, nunca confiar en el cliente
  2. Implementar middleware de autorizacion en cada endpoint admin
  3. No exponer el rol en las respuestas del API si no es necesario
  4. Principio de menor privilegio en 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 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.