The Endpoint Was Public for a Reason — The Data Wasn’t
An unauthenticated export cache endpoint trusted the X-Forwarded-Host header, allowing an attacker to poison the cached download URL to point to their own domain. This could expose sensitive user data such as names, emails, and phone numbers to anyone requesting the poisoned endpoint.
medium.com
Published on medium.com
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 backend trusted the X-Forwarded-Host header when generating export URLs and cached the response without validating the host.
Impact
Anyone requesting the poisoned endpoint could receive a download link pointing to the attacker's domain, potentially exposing sensitive user data such as full names, email addresses, and phone numbers.
What the attacker needed
No authentication required; ability to send custom headers
How it was found
- Discover the public export cache status endpoint in archived JavaScript.
- Map related export cache endpoints.
- Test cache behaviour and observe cache hits.
- Send a request with a forged X-Forwarded-Host header to the cache fetch endpoint.
- Observe the poisoned download URL in the response.
- Access the poisoned endpoint without authentication to download 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.
A web cache stores copies of responses to serve them faster. Here, the server used a header called X-Forwarded-Host to build a download link, and because the cache stored that response, other users received the attacker's link. This could leak personal data like names and emails.
What is Cache bugs?
A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.