Skip to content
Info disclosure Write-up Beginner

Information Disclosure via GraphQL in Production

A production GraphQL endpoint allowed introspection queries without authentication, letting anyone retrieve the full API schema including queries, mutations, internal fields and backend paths. An attacker could use this map to plan further attacks such as unauthorised data access or privilege escalation.

medium.com

Published on medium.com

Free Article Link: Click for free!

Ehtesham Ul Haq, 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 the GraphQL server was deployed with introspection enabled in production and without restricting it to authenticated or admin users.

Impact

The exposed schema could let attackers discover sensitive fields and endpoints and chain follow-up vulnerabilities such as IDOR or unauthorised mutations; the text does not show that any data was actually accessed.

What the attacker needed

A free account; a proxy tool such as Burp Suite

The fix

Introspection should be disabled in production, or restricted to development environments or authenticated admin roles, and schema exposure should be audited regularly.

How it was found

  1. Log in to an account on the target site.
  2. Intercept a valid GraphQL request with a proxy tool.
  3. Send the request to the repeater.
  4. Replace the original query with a standard introspection query.
  5. Send the request and observe the full schema returned.

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. It has a built-in feature called introspection that lets a client ask the server to describe everything it can do. If that feature is left on in a live system, anyone can see the full list of data and actions, which helps them plan attacks.

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.