seleth
Sign inSign up

A regular user can perform admin actions

Broken Function Level Authorization

What this means

Administrative actions โ€” deleting data, exporting user lists, changing settings โ€” work for anyone who knows the address. The button is hidden in the interface, but the request still succeeds.

Why it matters

A hidden button only protects against accidental clicks. Admin addresses are easy to spot in page source, and the damage is irreversible: deleted data and exported lists do not come back.

When this is not a problem

Actions deliberately open to all users are not a finding.

How to fix it

  • Check the user's role on the server for every administrative action.
  • Treat access as denied by default and open it explicitly.
Prompt for your AI agent
Protect administrative actions with a server-side role check: anything admin-only must return 403 for a regular user.

How to verify the fix: call an admin action from a regular account โ€” expect a refusal

Classification: CWE-285 CWE-863 ยท API5:2023 ยท A01:2021
References: cwe.mitre.orgowasp.org

โ† Check your own app