How I Found Insecure Direct Object Reference (IDOR) vulnerability
The author tested a GraphQL API for IDOR and RBAC flaws, but most attempts failed with permission errors. One test succeeded: an Auditor (view-only) role could read another user's team information by changing the user ID, though the report was later marked as a duplicate.
Published on medium.com
POST -> https://EXAMPLE.com/query?op=UpdateUserNameOrRole
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 did not properly check whether the requesting user had permission to view the target user's team information, allowing an Auditor role to access data outside its intended scope.
Impact
An attacker with an Auditor (view-only) role could read team information belonging to other users, which they should not have access to; the report was rated Medium 4.3 but was a duplicate.
What the attacker needed
An account with Auditor (view-only) role; knowledge of another user's ID
How it was found
- Identify the GraphQL endpoint and the operation for reading team data.
- Log in with an Auditor (view-only) role.
- Send a request to read team data, replacing the user ID with that of an Approver.
- Observe that the request succeeds and returns the Approver's team information.
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 IDOR (Insecure Direct Object Reference) happens when a website lets you access someone else's data just by changing an identifier like a user ID in a request. Here, the tester tried many ways to access other users' information and most were blocked, but one request let a low-privilege 'Auditor' role view another user's team details. The report was closed as a duplicate, meaning someone else had already reported the same issue.
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.