Path Confusion: The Subtle Trick That Fooled the Cache
The web cache could be tricked into storing a user's profile page containing personally identifiable information by appending a crafted path to a URL, so that the cache treated it as a static file while the origin server returned the private page. An attacker could then retrieve that cached page without authentication and read the victim's PII.
Web Cache Deception happens when an attacker tricks a website into caching private content — like a user’s personal data — and then serving it to anyone. This usually works by adding something like .css, .js, or .jpg to the end of a URL that normally shows sensitive information.
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 and the origin server disagreed on how to interpret the URL path, so the cache treated a dynamic profile page as a static file and stored it.
What the attacker needed
Victim visits a crafted URL; attacker can send requests to the target; cache stores responses for static-looking paths
How it was found
- Notice that a CSS request was publicly cached.
- Find an endpoint not blocked by the WAF and append a path ending in a CSS filename to a parameter.
- Send the request several times until the page is cached.
- Move to the profile section and try appending a CSS filename to a parameter, but get blocked.
- Try another parameter with a crafted value ending in a CSS filename and see it cached.
- Visit the cached URL and observe PII from the user profile page.
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 is a server that stores copies of web pages to serve them faster. This report shows that by adding a fake file extension to a private profile URL, the cache was fooled into saving the private page and then showing it to anyone who asked for that URL. The attacker did not need to log in as the victim to see the victim's personal information.
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.