Skip to content
IDOR Write-up Intermediate

Graphql Abuse to Steal Anyone’s Address

A GraphQL endpoint used to check whether a user is registered returned a user object whose fields could be swapped to reveal private data. By changing the requested field from a status value to address fields, an attacker with only a victim's email address could read their home address and other sensitive information.

Pratik Yadav Follow

Published on blog.usejournal.com

Due to some reasons, I had to remove this blog post earlier as I didn’t have any approval from the Security Team of that program. Now they have approved my blog post.

pratik yadav, on blog.usejournal.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

Impact

An attacker who knows a victim's email address could read their home address, balance and wallet address; the text does not mention any defence that limited this.

What the attacker needed

Victim's email address; access to the staging GraphQL endpoint

The fix

The text says the staging subdomain was taken down, but it does not describe a code fix; properly, the resolver should enforce authorisation so callers can only request fields they are allowed to see.

How it was found

  1. Proxy the application's traffic and perform normal operations such as sending money to another test account.
  2. Find the GraphQL request that validates whether the recipient is a registered user.
  3. Notice the response contains a user type name, then run an introspection query to list all fields of that type.
  4. Identify private fields such as address lines, balance and wallet address.
  5. Replace the original status field in the request with a private field and send it.
  6. Observe the private data of the other user in the response.

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.

GraphQL is a way for apps to ask a server for specific pieces of data. The server here let the app ask for any field on a user object, including private ones like home address, without checking if the requester was allowed to see them. So anyone who knew an email address could look up that person's private details.

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.

More by Pratik Yadav

View all

4 more disclosed reports, best first.

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.