Skip to content
IDOR Write-up Intermediate

๐Ÿ›๐Ÿ’ฐ๐Ÿ”“๐ŸŽฏ GraphQL Security: How I Found and Exploited Critical IDOR and Authorization Bypass in a Modern API

The GraphQL API had introspection enabled and lacked object-level authorization, so any authenticated user could read and modify other users' financial transactions by guessing sequential transaction IDs. Batch queries allowed rapid enumeration of many transactions in one request.

Krishna Kumar Follow

Published on infosecwriteups.com

Let me set the stage for you. It was a typical Tuesday night, coffee brewing, and I was scrolling through HackerOne looking for my next target.

Krishna Kumar, on infosecwriteups.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 missing object-level authorization checks in GraphQL resolvers, combined with introspection and batch queries being enabled in production.

Impact

An authenticated attacker could read the full financial history of any user and cancel or modify any transaction, causing privacy violations and business disruption.

What the attacker needed

A free account; knowledge of transaction ID pattern

The fix

The issue was fixed by disabling introspection in production and adding object-level authorization checks to resolvers, along with query complexity and depth limits.

How it was found

  1. Access the GraphQL playground at the API endpoint.
  2. Send an introspection query to retrieve the full schema.
  3. Log in with a test account and capture the authentication token.
  4. Query a transaction by its ID to confirm access to own data.
  5. Change the transaction ID to another user's ID and observe that their data is returned.
  6. Use batch queries to retrieve multiple transactions in one request, and use a mutation to change another user's transaction status.

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.

A GraphQL API is a way for apps to ask a server for specific data. Here, the server let any logged-in user ask for someone else's transaction just by changing an ID number, and it also let them cancel other people's payments. The API also publicly listed all its available queries, which made finding these actions easy.

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 Krishna Kumar

View all

10 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.