← back to room
Broken Access Control

Broken Access Control Lab

Scenario

The student dashboard includes a form that updates your role label. The server applies whatever role value you POST without verifying eligibility. Promote yourself to admin and open the admin panel.

Your approach

  1. Locate the role update form or endpoint on the dashboard.
  2. POST role set to admin while authenticated as a student.
  3. Navigate to admin-only pages now visible in the UI.
  4. Read secret_flag from admin settings.
  5. Submit the admin panel flag.
Find and exploit the access-control flaws:
  • Hidden admin APIs — discover admin-only endpoints from intercepted traffic and hit them as a normal user.
  • Privilege escalation — change your own role to admin.
  • IDOR — read other users' profiles/data by id.
  • Payment bypass — the "paid" check is client-side only.
Test accounts: admin/admin123 and user1/user123.

Welcome to the course platform

Log in to access your dashboard and the premium course area.

Login Register