How a Hidden GraphQL Endpoint Turned Into a Serious Data Leak
A hidden GraphQL endpoint exposed several internal queries that lacked authentication checks, allowing an unauthenticated attacker to read billing and customer data across tenants. By chaining job IDs from one query into others, the attacker could access sensitive business information from multiple companies.
I want to walk you through one of the most interesting bugs I’ve found recently, a hidden GraphQL endpoint that ended up leaking billing data across tenants on a multi-tenant platform.
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 an entire backend module was deployed without the proper authorization filter, so multiple related GraphQL resolvers lacked authentication checks.
Impact
An unauthenticated attacker could read business-sensitive billing, customer, and usage data across tenant boundaries, potentially exposing pricing and customer relationships of multiple companies.
What the attacker needed
No account needed; internet access to the endpoint
How it was found
- Search the website's JavaScript files for API paths and find a hidden GraphQL endpoint.
- Send a minimal GraphQL query to confirm the endpoint is alive and responds like a GraphQL server.
- Run introspection on both the public and hidden endpoints and compare their schemas.
- Write a script to test every query from the hidden endpoint without authentication, using __typename to check if each resolver executes.
- Identify queries that return real data without authentication, including one that lists billing jobs with job IDs.
- Use the job IDs from the first query in other unauthenticated queries to retrieve customer details, job status, and internal processing information.
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.
The website had a secret GraphQL API that was not linked anywhere, and some of its queries did not check if the user was logged in. Anyone on the internet could ask those queries and get back private billing and customer information from other companies using the same platform.
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.