Skip to content
Info disclosure Write-up Beginner

️ Map to Mayhem: How an Internal API Directory Leaked Sensitive

An internal API directory file exposed GraphQL endpoints for auth, payment, and admin services. The auth service returned user details including password hashes, the payment service disclosed invoice data with card details, and the admin service returned logs without authentication.

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 internal API directory was publicly accessible and the GraphQL endpoints lacked proper authentication and authorization checks.

Impact

The exposed endpoints could allow full user data disclosure, financial data leakage, and admin log access that may lead to privilege escalation.

What the attacker needed

None

The fix

The text does not state that the issue was fixed; it should be fixed by removing public access to the API directory and enforcing authentication and authorization on all GraphQL endpoints.

How it was found

  1. Found an internal API directory file during content discovery.
  2. Opened the file and saw a list of GraphQL service endpoints.
  3. Ran a GraphQL introspection query to enumerate the schema.
  4. Queried user details and received email, password hash, and phone.
  5. Queried an invoice and received customer email, card last four digits, and billing address.
  6. Called an admin log mutation with a dummy token and received admin logs.

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 hidden file on a web server listed internal API addresses that were meant to be private. The APIs behind those addresses did not check who was asking, so anyone who found the file could read user details, payment invoices, and admin logs.

What is Info disclosure?

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

More by iski

View all

186 more disclosed reports, best first.

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.