Skip to content
Access control Write-up Beginner

How I Got Multiple Privilege Escalations — The Easy Trick?

A least-privileged user could call a search endpoint for many object types and receive full responses for objects they should not be able to read. By swapping the object code in the request, the tester found four cases where the API returned data beyond the user's documented permissions.

Mdabdulrahman Follow

Published on medium.com

It’s a vast application with tenants and user roles. For testing basic privilege escalations first, I created two accounts: admin user and least privilege user.

Md Abdul Rahman, 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 search endpoint checked only that the caller was logged in, not whether the caller had permission to read the requested object type.

Impact

A low-privilege user could read data from object types they were not meant to access, resulting in four privilege escalations, though some returned objects were already visible to that user by default.

What the attacker needed

A low-privilege account; access to the API documentation; an intercepting proxy

How it was found

  1. Read the API documentation and collect the documented object codes for each API version.
  2. Save the object codes into a wordlist file.
  3. Capture the session token of the least-privileged user.
  4. Send the search request with that session to the repeater tool.
  5. Run an automated attack replacing the object code with each wordlist entry.
  6. Review the responses and compare them with the documented permissions to find objects that should not be readable.

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.

An application lets users search for things like emails or invoices through one shared web address, where only a word in the address says which kind of thing to search. The tester logged in as a low-privilege user and changed that word to other kinds of objects. The server did not check whether this user was allowed to see those objects, so it returned data it should have kept private.

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.