€2000 Bounty — IDOR to Privilege Escalation : From Admin
An admin user could change roles by sending a UUID, and a hidden fourth role UUID was exposed in a GET response. By substituting this UUID, the attacker gained elevated privileges to manage internal employees and system accounts.
Published on medium.com
Hello! I’m Ashar Mahmood, a 23-year-old cybersecurity researcher who loves diving deep into access control flaws and broken authentication mechanisms.
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 application failed to properly authorise role changes, allowing any admin to assign any role UUID, including hidden ones, without verifying if the user should have access to that role.
Impact
An attacker with admin access could escalate privileges to manage internal employees and system accounts, potentially compromising confidentiality, integrity, and availability.
What the attacker needed
A logged-in admin account
How it was found
- As an admin, visit the /users page and observe role change requests.
- Notice that role changes use UUIDs, and find a GET request that returns a list of role UUIDs.
- Identify a fourth UUID not shown in the UI.
- Replace the role UUID in a role-change request with the hidden UUID.
- Send the request and observe a 200 OK response.
- See that new users and roles appear, including internal employees and system accounts.
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.
This is about an Insecure Direct Object Reference (IDOR), where a system uses a hidden identifier (like a UUID) to control access. The attacker noticed that the role-change request used a UUID, and a hidden role UUID was visible in a response. By using that hidden UUID, they could give themselves a higher role than intended.
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.