Skip to content
Info disclosure Write-up Advanced

Mass XS-Search using Cache Attack

Multiple Google services load distinct static resources depending on whether a search query returns results, allowing an attacker to infer private user data by detecting cached resource loads. An attacker could leak search history, emails, contacts, bookmarks, notes, and watched videos by tricking a logged-in user into visiting a malicious page.

terjanq Follow

Published on terjanq.github.io

I was researching all over Google for vulnerable endpoints that allow a malicious third party to obtain sensitive information about the user. I found them so many that I couldn’t decide whether to report all of the vulnerable pages as a one report or maybe split them as separate ones.

Terjanq (@terjanq), on terjanq.github.io

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 applications load distinct static resources conditionally on search results, and the browser cache can be probed cross-origin to detect which resource was loaded.

Impact

A logged-in user visiting a malicious site could have sensitive information such as search history, emails, contacts, bookmarks, notes, and watched videos leaked; the attack works only in browsers that allow cache probing and may be limited by caching behaviour.

What the attacker needed

Victim is logged in to Google; victim visits attacker's page; browser allows cache probing

How it was found

  1. Access the PoC page.
  2. Find the section for the target service.
  3. Enter the search term or value to check.
  4. Submit the form.
  5. Wait for the attack to finish and read the result.

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 search on a website, the page often loads different images or fonts depending on whether there are results. The report found that an attacker can tell which image was loaded by checking if it is already in the browser's cache, a temporary storage of downloaded files. By making a logged-in user visit a malicious page, the attacker can ask many yes/no questions about private data and piece it together.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by terjanq

View all

4 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.