Web tracking via HTTP cache cross-site leaks
The HTTP cache was not partitioned by origin, so a malicious site could use JavaScript to probe whether a victim's browser had cached a specific profile image URL. This allowed an attacker to identify and track logged-in users of social networks that use shared, cacheable profile image URLs.
polict.net
Published on polict.net
Google Chrome and Mozilla Firefox desktop users using the default configuration can be identified and tracked online if they are logged-in popular social networks, have JavaScript enabled and visit malicious websites.
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 browser's HTTP cache was not keyed by the top-level site, so cached resources were shared across origins, allowing a cross-site side channel.
Impact
An attacker could identify and track users of vulnerable social networks, potentially discovering social connections and personal information, but only if the victim uses a vulnerable browser and the web app meets certain conditions.
What the attacker needed
Victim uses a vulnerable browser; victim has JavaScript enabled; victim is logged in to the vulnerable app; victim has a custom profile picture
The fix
The issue should be fixed by implementing a double-keyed cache in browsers or by using per-user secret URLs for images in web apps.
How it was found
- The attacker notes the target's profile image URL from the vulnerable app.
- The attacker forces the browser to flush the cache for that image URL.
- The attacker loads a page on the vulnerable app that includes the victim's profile image.
- The attacker forces the browser to use the cache for the image URL.
- The attacker checks whether the image loads from cache to determine if the victim is logged in.
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.
When you visit a website, your browser saves some files (like images) in a cache so it doesn't have to download them again. Normally, a website shouldn't be able to tell what you've cached from another site, but in some browsers the cache was shared across sites. This meant a malicious site could check if your browser had already saved a specific image from another site, and from that infer who you are.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.