Skip to content
IDOR Write-up Intermediate

Hunting Access Control Bugs: How I Found a Critical IDOR & Privil

A low-privileged Manager could send a request to update role permissions and the server did not check whether the user was allowed to do so. The Manager could enable all permissions for their own role and for other roles, gaining Global Admin-level access.

whoami Follow

Published on medium.com

Ready to dive into the wild world of access control vulnerabilities? Today, I’m spilling the beans on how I uncovered a critical Insecure Direct Object Reference (IDOR) and privilege escalation bug in a SaaS application (let’s call it [Redacted] for anonymity).

Whoami, 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

Root cause

Likely the server trusted the role identifier and the user's cookie without verifying that the authenticated user had permission to modify that role's permissions.

Impact

A Manager could escalate to Global Admin, view financial data, export projects, and change other users' roles, potentially affecting multiple organisations on the SaaS platform.

What the attacker needed

A free account; two accounts: admin and manager; ability to intercept requests

How it was found

  1. Create two accounts: a Global Admin and a Manager.
  2. As Global Admin, update the Manager role's permissions and capture the request.
  3. As Manager, replace the admin's cookie with the Manager's cookie in the captured request.
  4. Send the modified request and observe that the Manager role now has all permissions enabled.
  5. Log in as Manager and confirm Global Admin-level access.
  6. Use a GET endpoint to list all role IDs, then change the Role-ID to an Admin role's ID and repeat the update.

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.

A role is a set of permissions, like 'can edit projects'. The application let a low-level user change what their own role could do, because it did not check on the server whether that user was an admin. This meant the low-level user could give themselves all the powers of an administrator.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by whoami

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.