From Simple Restriction Bypass to Internal Privilege Escalation to High Impact IDOR
A user could bypass a restriction to edit their own name, then by changing the user ID in the request could edit other users' accounts within their company, and by inviting a user from another company could edit that user's account before the invitation was accepted. This allowed an attacker to modify any account across three interconnected applications by knowing the victim's email address.
A few weeks ago, while hunting on an external bug bounty program, I came across a fascinating case of IDOR (Insecure Direct Object Reference) that allowed me to modify other users’ accounts across three interconnected web applications — without any interaction from the victim. This bug was not just a one-off; I later…
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 checked only that the requester was an admin or owner within their own company, but failed to verify that the target user belonged to the same company or that the requester had permission to edit that specific user, especially when an invitation was pending.
What the attacker needed
An account on one of the apps; admin or owner role for some steps; victim's email address; no victim interaction
The fix
The issue was fixed after responsible reporting.
How it was found
- Edit your bio and capture the PUT /users/me request containing the name parameter.
- Modify the name parameter and send the request; the name is updated despite the restriction.
- Change the request path from PUT /users/me to PUT /users/{my_account_id}; the update succeeds.
- Replace your account ID with another user's ID; the request fails with a FORBIDDEN error.
- As an admin or owner, modify another user's account within your own company; it succeeds.
- Invite a user from another company, capture their user ID from the API response, and send a PATCH /users/{victim_id} request to update their account before they accept the invitation.
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 'IDOR' (Insecure Direct Object Reference), where a website lets you change a number or identifier in a request to access or modify something that belongs to someone else. Here, the attacker could change the user ID in a request to edit other people's profiles, even though the website tried to block it. The attacker first found they could edit their own name despite a restriction, then discovered they could edit others in their company, and finally found a trick to edit anyone by inviting them to their company.
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.