Turning Threat Intelligence into Bug Bounty Gold: A Practical Wor
A user info endpoint was publicly cached and the cache key included the X-Forwarded-Host header, allowing an attacker to poison the cache with a malicious profile image URL. By also using an X-Original-URL header, the attacker could make the cache serve internal admin data to all users.
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 key included the X-Forwarded-Host header, and the application also trusted the X-Original-URL header to route requests, allowing cache poisoning and internal endpoint access.
Impact
Any user could receive cached admin data, leading to sensitive information disclosure and potential manipulation of API responses.
What the attacker needed
No authentication required; Target uses a CDN with cache; Attacker can send custom headers
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 cache stores copies of web responses to serve them faster. If the cache decides what to store based on a header that an attacker can set, the attacker can make the cache store a malicious response and then everyone who requests that page gets the malicious version. Here, the attacker used a header to change the response and another header to access internal data, then the cache served that data to everyone.
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.