How I Found a Chain of Critical Vulnerabilities in a Public Platf
The GraphQL API allowed a regular authenticated user to access admin-only queries and mutations, including listing all users with their live password reset tokens. An attacker could use these tokens to take over any account without email interaction.
During a security assessment of an application for REDACTED platform, I discovered a chain of vulnerabilities in their GraphQL API that - when combined — could allow a single authenticated user to take over any account on the 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 missing authorization checks on the GraphQL admin namespace, allowing any authenticated user to run privileged queries and mutations.
Impact
An authenticated user could take over any account on the platform by using exposed password reset tokens, without needing email interaction.
What the attacker needed
A valid user account; GraphQL introspection enabled
How it was found
- Query the GraphQL schema using introspection to discover available queries and mutations.
- Test whether a regular user token can access the admin query.
- Dump the full mutation list to find privileged operations.
- Query the admin namespace to list all users with their details and reset tokens.
- Use the exposed reset tokens to take over accounts.
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 data. The server had admin-only commands that any logged-in user could run, and those commands returned secret password reset codes for every user. With those codes, someone could reset anyone's password and take over their account.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.