Skip to content
Info disclosure Write-up Intermediate

Excessive Data Exposure via Unauthenticated GraphQL Endpoint

An unauthenticated GraphQL endpoint exposed sensitive user data through a nested owner field on a paginated collection query, despite direct user queries being restricted. An attacker could enumerate names, email addresses, and internal identifiers without authentication.

am011416854 Follow

Published on medium.com

During a security assessment of a public-facing web application, I discovered an information disclosure vulnerability in a GraphQL endpoint. The endpoint exposed sensitive user data — including names, email addresses, and internal identifiers — without requiring any authentication.

0xPinocchioSec, on medium.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

Authorization checks were applied inconsistently across the GraphQL schema, so a nested owner field on a paginated query returned sensitive user data without verifying the caller's rights.

Impact

An attacker could enumerate valid users, build targeted phishing campaigns, and perform social engineering using exposed names and email addresses; the per-request limit did not prevent full enumeration.

What the attacker needed

None

The fix

The issue should be fixed by enforcing authorization checks at every GraphQL resolver and applying field-level access control to sensitive attributes, and requiring authentication before returning paginated datasets.

How it was found

  1. Perform content discovery and find a publicly reachable GraphQL playground at /graphiql.
  2. Access the GraphQL playground without authentication and confirm arbitrary queries can be executed.
  3. Enumerate the schema to list queries, mutations, object types, nested fields, and pagination parameters.
  4. Identify that a paginated collection query includes nested owner objects containing personal user information.
  5. Execute a query on the paginated collection requesting owner fields such as firstName, lastName, email, and id.
  6. Use smaller paginated requests and iterate through offsets to collect all exposed records despite a per-request limit.

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 endpoint is a way for apps to fetch data using queries. Here, the app protected direct requests for user details but forgot to check permissions on a related field, so anyone could ask for user information indirectly. This let attackers collect personal data like names and emails without logging in.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.