Skip to content
Info disclosure Write-up Beginner

️ How I Found an Unauthenticated GraphQL Data Exposure and got

An exposed GraphQL endpoint allowed unauthenticated queries that returned internal users' IDs, emails and full names. An attacker could retrieve this sensitive user data without any login or token.

Null Follow

Published on medium.com

Recently, I stumbled upon a classic yet dangerous misconfiguration: an exposed GraphQL endpoint that handed over sensitive user data no authentication needed. Here’s how I found it.

Null, 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

Likely missing authentication and access controls on the GraphQL endpoint, allowing unauthenticated queries to return user data.

Impact

The endpoint exposed internal users' IDs, emails and full names without authentication, which could aid internal reconnaissance and social engineering.

What the attacker needed

None

How it was found

  1. Notice the GraphQL endpoint in traffic on a subdomain.
  2. Send a basic query for user fields and receive a 400 error revealing valid field names.
  3. Adjust the query to use the suggested field names.
  4. Send the corrected query and receive a 200 response with user data.

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 ask a server for specific data. Here, the server did not check who was asking, so anyone could request a list of users and get back private details like email addresses. The error messages even helped the tester guess the correct field names.

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.