Dev Mode Disaster: How an Open GraphQL Playground Let Me Query Everything, Including Your…
An unauthenticated GraphQL playground was exposed on a development subdomain with introspection enabled, allowing the author to query sensitive data such as employee salaries, tokens, and personal information. The author also used harvested access tokens to impersonate users on the production API.
infosecwriteups.com
Published on infosecwriteups.com
Free Link 🎈
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 development GraphQL endpoint was deployed to a publicly reachable subdomain without authentication, and introspection plus sensitive queries were left enabled.
Impact
The author could read employee salaries, SSNs, tokens, and internal notes, and could impersonate users on the production API, though the text does not show a defence blocking the exploit.
What the attacker needed
Publicly reachable dev subdomain; no authentication on GraphQL endpoint; introspection enabled
How it was found
- Enumerate subdomains to find a development API host.
- Brute-force directories on the host to discover a GraphQL playground.
- Run an introspection query to retrieve the full schema.
- Query user, employee, token, and directory data through the playground.
- Use a harvested access token to call the production API as another user.
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 playground is a tool for testing queries against an API. If it is left open without a password on a public server, anyone can ask the API for data. Here, the API returned private information like salaries and login tokens, which could then be used to act as other users.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.