Skip to content
Access control Write-up Intermediate

The Hidden Language: Exploiting GraphQL for Unauthorized Data Dum

A GraphQL endpoint had introspection enabled and lacked authentication and authorization checks, allowing an attacker to query all user data and perform a mutation to grant admin privileges to any user.

iski Follow

Published on infosecwriteups.com

Free Link🎈

Iski, 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 the GraphQL endpoint was misconfigured to allow introspection and lacked proper authentication and authorization checks on queries and mutations.

Impact

An unauthenticated attacker could read all users' personal information and escalate any user to admin, potentially leading to full account takeover and data breach.

What the attacker needed

GraphQL endpoint exposed; introspection enabled; no authentication required

How it was found

  1. Send a POST request to the GraphQL endpoint with an introspection query to list types.
  2. Use the introspection results to enumerate available queries and fields.
  3. Query the users field to retrieve user data including emails, phones, and admin status.
  4. Send a mutation to update a user's isAdmin flag to true.

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 for exactly the data they need. Here, the endpoint let anyone ask for all user details and even change users to admins without logging in. This is like a library where anyone can read every book and rewrite the labels.

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.

More by iski

View all

186 more disclosed reports, best first.

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.