I Followed the Data Trail — It Led Straight to a Production Ser
A legacy cache layer trusted the X-Forwarded-Host header, allowing an attacker to poison cached responses and redirect users to a controlled domain. The report export endpoint also accepted a user-supplied source URL, enabling access to internal services and exposure of sensitive data.
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 cache layer trusted the X-Forwarded-Host header without validation, and the report export endpoint accepted an arbitrary source URL without restricting it to internal or external addresses.
Impact
An attacker could poison the cache to redirect users to a malicious domain and access internal services, potentially exposing sensitive data such as user identifiers, internal logs, and API tokens.
What the attacker needed
Access to a breach dump containing the backup file; the legacy infrastructure remains active; the cache layer trusts the X-Forwarded-Host header
How it was found
- Download an old backup ZIP file found in a breach dump.
- Extract configuration files including app.env, nginx.conf, and internal_routes.json.
- Check which subdomains from the configuration are still active using subfinder and httpx.
- Send a request to the cache layer with a spoofed X-Forwarded-Host header.
- Send a normal request to the same endpoint and observe a changed response.
- Send a POST request to the report export endpoint with a spoofed X-Forwarded-Host header and observe a redirect to the attacker domain.
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 caching layer is a server that stores copies of web responses to speed up loading. Here, it believed a header that told it which website the request was for, so an attacker could make it store a fake redirect. The report generator also let users provide a web address, which it fetched without checking, so it could reach internal systems.
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.