When CDNs Lie: How Cached Responses Exposed Private Data at Scale
An authenticated endpoint that returned user-specific data was cached publicly by the CDN, and the cache key did not include headers that the backend used for logic. An attacker could poison the cache with a request containing special headers, causing other users to receive the attacker's elevated response, which included an impersonation token.
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 CDN cache key did not include headers that the backend used to vary responses, so different users' requests mapped to the same cached response.
Impact
This could expose cross-account data, escalate privileges, and allow session impersonation at scale via the CDN edge.
What the attacker needed
Authenticated user; CDN caches responses; 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 CDN (content delivery network) is a service that stores copies of web pages to serve them faster. Here, the CDN stored a private page that should only be shown to one user, and because it didn't distinguish between different users' requests properly, one user's private data could be shown to others. The attacker could also trick the system into storing a response that gave them extra privileges.
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.