Burp, Bounce, and Break: How Web Cache Poisoning Let Me Control t
The application reflected the X-Forwarded-Host header value in its responses and cached those responses, allowing an attacker to poison the cache so that all users saw content controlled by the attacker. This could be used for content spoofing and phishing.
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 application used the X-Forwarded-Host header to generate absolute URLs or content without validating it, and the response was cached without considering that header.
Impact
All users received poisoned content, which could be used for phishing or misinformation, and the effect persisted across sessions and regions.
What the attacker needed
No authentication required; Target uses caching; X-Forwarded-Host header is reflected
How it was found
- Send a request to the vulnerable URL with a modified X-Forwarded-Host header.
- Observe that the response reflects the header value.
- Use curl to send the same request, poisoning the cache.
- Open the URL in a clean browser to confirm the poisoned content is served.
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 pages to serve them faster. If a page includes a value from a request header (like X-Forwarded-Host) and that page is cached, an attacker can set that header to a malicious value, and the poisoned page is then served to everyone. This lets the attacker change what users see, which can be used for phishing.
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.