Skip to content
Cache bugs Write-up Intermediate

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.

Xt3sY Follow

Published on medium.com

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.

Pushkar Bhagat, on medium.com

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

  1. Notice that a CSS request was publicly cached.
  2. Find an endpoint not blocked by the WAF and append a path ending in a CSS filename to a parameter.
  3. Send the request several times until the page is cached.
  4. Move to the profile section and try appending a CSS filename to a parameter, but get blocked.
  5. Try another parameter with a crafted value ending in a CSS filename and see it cached.
  6. 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.

More by Xt3sY

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

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.