GraphQL IDOR Allows Unauthorized Revocation of Other Users’ Act
An authenticated attacker could revoke another user's activation token by changing the token ID in a GraphQL request, because the server only checked authentication and not ownership. This allowed unauthorised revocation of other users' tokens.
Published on medium.com
When I receive an invitation to an old program and decide to test it, I start by understanding the program’s business and navigating its pages. Since it’s an older program, I often check the What’s New section for recently released features, paying close attention to security enhancements.
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 GraphQL revoke mutation lacked an ownership check, only verifying that the caller was authenticated.
Impact
An authenticated attacker could revoke other users' activation tokens.
What the attacker needed
Authenticated attacker account; victim's activation token ID
How it was found
- As an authenticated attacker, open the dashboard and click Revoke on an activation token while intercepting requests with Burp Proxy.
- Send the captured GraphQL revoke request to Burp Repeater.
- In Repeater, replace the attacker's token ID with the victim's activation token ID.
- Forward the modified request.
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.
When you log in, the server gives you a token to prove who you are. This report shows that the server let any logged-in user delete someone else's token just by changing a number in the request, because it never checked if the token belonged to them.
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.