At a glance
- Controls
- CWE-285 · A01:2021 Broken Access Control
What it is
The interface hides admin buttons from ordinary users. The server behind those buttons does no role check of its own. Hiding a control in the screen does nothing to protect the route it calls.
An attacker signs up for a normal account and reads the app's scripts, API documents or network traffic to list every route. They then call the admin routes directly. AI-assisted attackers can extract and try every route in a bundle quickly, so hidden routes get found early.
Where it hides
What a reviewer can look for in the code and in the behaviour, before anyone proves it.
- Admin API routes such as user management, refunds or feature switches
- Internal support tools that share the main API
- Bulk actions like export all, delete all or impersonate user
- Older API versions where role checks were added later to new routes only
How MATT tests it
The proof runs against the deployed product, on every release, whoever wrote the code.
- 01Read the code to list every route and the role each one expects.
- 02Sign in as an ordinary test user and call a read-only admin route, such as a user list.
- 03Record which privileged routes answer with data or success, using only safe calls on test records.
Every privileged action must check the caller’s role on the server.
Executable checkas an ordinary user: GET /v1/admin/users expect: 403 as an ordinary user: POST /v1/admin/settings with a harmless change expect: 403 and the setting unchanged
Every rule MATT holds →What the fix looks like
- 01
Check the caller's role on the server for every privileged route, in one shared middleware or policy layer.
- 02
Deny by default, so a new route needs an explicit role before it answers.
- 03
Keep admin routes on a separate path or service with its own access rules.
- 04
Add an automated test per admin route that calls it as an ordinary user and expects 403.
A check that was never written is found by proving the deployed behaviour, fixed with the engineer who shipped it, and kept fixed by running the control on every change. What is ExploitOps? →