Skip to content
Info disclosure Write-up Intermediate

Logs Don’t Lie: How a GraphQL Debug Endpoint Spilled the Entire Database ️

A production GraphQL debug endpoint exposed introspection, server logs containing SQL queries and password hashes, and a feature that executed raw SQL. An attacker could dump user emails and password hashes from the database.

infosecwriteups.com

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 a debug GraphQL endpoint was deployed to production with introspection, log access, and raw SQL execution enabled and without proper access control.

What the attacker needed

Debug-api subdomain reachable; no authentication required

How it was found

  1. Find the debug subdomain with recon tools.
  2. Open the GraphQL Playground and note the hidden endpoint.
  3. Run introspection to list debug fields.
  4. Query server logs to see SQL queries and password hashes.
  5. Use the query history and raw SQL execution to extract 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 data. This one was a debug version left on the internet, and it let anyone read logs and run database queries. That meant private user details could be stolen.

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.