Skip to content
IDOR Write-up Beginner

GraphQL IDOR Vulnerability Report 350$ & by dexblood

A GraphQL query returned any user's full profile when given that user's publicly visible display ID, because the resolver never checked whether the requester was allowed to see the object. Any logged-in user could therefore read other users' profile data, including users outside their own guild.

medium.com

Published on medium.com

GraphQL IDOR Vulnerability Report 350$ in Casino & by dexblood

Reza.Safarzade, 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 resolver for the userData query looked up the object by the client-supplied ID but never verified that the caller was authorised to access that object.

Impact

Any authenticated user could retrieve arbitrary users' profile data without privileges, and did not need to share a guild with the victim.

What the attacker needed

A free account; victim's display ID is public to logged-in users

The fix

Resolvers should enforce object-level authorisation so a caller can only fetch objects they are permitted to see, and introspection should be restricted in production.

How it was found

  1. Log in with a standard, unprivileged account.
  2. Collect display IDs of other users from the bonus/chat page, which lists them publicly.
  3. Open the personal profile page and intercept the GraphQL request sent during profile updates to learn the request shape and see the internal user ID returned.
  4. Run introspection against the production schema to list the available queries and fields.
  5. Send the userData query with the victim's display ID and a valid guild ID, and receive the victim's full profile.

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 API is the part of a website that fetches data for the page. This one used GraphQL, a way of asking for exactly the fields you want by naming an object's ID. The server handed back whatever object matched the ID you sent, without checking that the object belonged to you, so changing the ID showed someone else's profile.

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.