Skip to content
Access control Write-up Intermediate

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.

#$ubh @r Follow

Published on osintteam.blog

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.

#$ubh@nk@r, on osintteam.blog

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

  1. Query the GraphQL schema using introspection to discover available queries and mutations.
  2. Test whether a regular user token can access the admin query.
  3. Dump the full mutation list to find privileged operations.
  4. Query the admin namespace to list all users with their details and reset tokens.
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.