Skip to content
Access control Write-up Beginner

Simple Broken Access Control

A low-privileged user could read role names from an internal API endpoint that should have been restricted, and further probing showed the same weakness on asset and configuration endpoints. Because the backend never checked token permissions, any user with a valid token could create, update and delete assets and configurations.

medium.com

Published on medium.com

It started when I was reviewing a misconfiguration related to role upgrade and downgrade logic. During this process, I noticed something unusual: a low-privileged user was still able to read information that should have been restricted, such as role names, through an internal API:

Windasunny, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

A normal user could read restricted role information and could create, update and delete assets and configurations, though the text does not show what damage this caused in practice.

What the attacker needed

A valid low-privileged account token

How it was found

  1. Review the role upgrade and downgrade logic and notice a low-privileged user can call an internal role API.
  2. Send a request to the role authorisation endpoint with a normal user's token and see role names returned.
  3. Intercept and review related requests to find asset and configuration authorisation endpoints.
  4. Confirm that create, update and delete operations also succeed with the same low-privileged token.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Access control is the rule that decides who is allowed to do what. Here the server only checked that a token was valid, not what the user was allowed to do, so a normal user could reach admin-only data and actions. This is called broken access control.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.