CWE-285Identity & accessSeverity · High

Admin actions open to ordinary users

An admin route hidden in the interface still answers any signed-in user who calls it directly. Any account holder can then run actions meant only for admins.

At a glance

Controls
CWE-285 · A01:2021 Broken Access Control
Typical severityHigh
ReferenceCWE-285
OWASP Top 10A01: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.

  1. 01Read the code to list every route and the role each one expects.
  2. 02Sign in as an ordinary test user and call a read-only admin route, such as a user list.
  3. 03Record which privileged routes answer with data or success, using only safe calls on test records.
The rule, in plain English

Every privileged action must check the caller’s role on the server.

Executable check

as 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

  1. 01

    Check the caller's role on the server for every privileged route, in one shared middleware or policy layer.

  2. 02

    Deny by default, so a new route needs an explicit role before it answers.

  3. 03

    Keep admin routes on a separate path or service with its own access rules.

  4. 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? →

ExploitOps discovery call

Understand where your security loop breaks.

A call with a MATT co-founder to understand your product and whether an ExploitOps Review is worth doing. If there is a real need, we scope one with the research team.

Let’s understand your priority

What brings you to MATT?

What would you like help with?
01 / 02