️ 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.
Free link 🎈
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
- Found an internal API directory file during content discovery.
- Opened the file and saw a list of GraphQL service endpoints.
- Ran a GraphQL introspection query to enumerate the schema.
- Queried user details and received email, password hash, and phone.
- Queried an invoice and received customer email, card last four digits, and billing address.
- 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.