Skip to content
IDOR Write-up Beginner

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.

Yasmeen Rezk Follow

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.

Yasmeen Rezk, 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 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

  1. As an authenticated attacker, open the dashboard and click Revoke on an activation token while intercepting requests with Burp Proxy.
  2. Send the captured GraphQL revoke request to Burp Repeater.
  3. In Repeater, replace the attacker's token ID with the victim's activation token ID.
  4. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.