This Endpoint Was “Read-Only” — Until I Read Everything 📖🚨
An unauthenticated API endpoint intended to be read-only returned full user records, and by adding expansion parameters and a huge pagination limit the author retrieved session tokens and the entire user table. The endpoint was also cached by a CDN that trusted forwarding headers, so a crafted request could poison the cache and serve the sensitive data to any anonymous visitor.
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
Impact
An unauthenticated attacker could retrieve all user records including emails, phone numbers, roles, internal notes, and session refresh tokens, and could poison the CDN cache so that any anonymous visitor received the exposed data.
What the attacker needed
No authentication required; Endpoint publicly reachable; CDN caches responses
How it was found
- Send an unauthenticated GET request to the read-only users endpoint.
- Add expansion parameters to include profile, roles, and sessions.
- Set a very large pagination limit to retrieve the full user table.
- Test parameter confusion with duplicate and array-style id parameters.
- Send a request with a spoofed X-Forwarded-Host header and observe cache MISS then HIT.
- Combine expansion, large limit, and spoofed header to poison the cache, then request the endpoint anonymously to receive the sensitive 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.
An API is how apps talk to servers. This one was supposed to only let people read a little, but it had no login check and let anyone ask for everything, including secret session tokens that could let an attacker log in as other users. The server also saved responses in a shared cache, so one poisoned response could be shown to everyone.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.