Skip to content
Info disclosure Write-up Advanced

Spook.js: Attacking Google Chrome's Strict Site Isolation via Speculative Execution and Type Confusion

Spook.js is a transient execution side channel attack that exploits Chrome's Strict Site Isolation consolidation of same-site pages and a type confusion to bypass 32-bit sandboxing, allowing an attacker-controlled page to read sensitive data from other pages, including autofilled credentials. It also enables a malicious extension to read memory of other extensions, such as password managers.

Ayush Agarwal Follow

Published on spookjs.com

Spook.js is a new transient execution side channel attack which targets the Chrome web browser. We show that despite Google's attempts to mitigate Spectre by deploying Strict Site Isolation, information extraction via malicious JavaScript code is still possible in some cases.

Ayush Agarwal, Sioli O'Connell, Jason Kim, Shaked Yehezke, Daniel Genkin, Eyal Ronen, Yuval Yarom, on spookjs.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 combination of Chrome's Strict Site Isolation consolidating pages from the same eTLD+1 domain under memory pressure and a type confusion in the JavaScript engine that allows bypassing 32-bit sandboxing.

Impact

An attacker could read sensitive information from other tabs of the same site, including autofilled credentials, and a malicious extension could read memory of other extensions like password managers; however, the attack requires specific conditions such as memory pressure and same-site hosting, and Google has deployed countermeasures.

What the attacker needed

Victim uses Chrome on Intel or Apple M1; Attacker controls page on same eTLD+1; Victim opens attacker page and target page; Memory pressure present

How it was found

  1. Deploy Spook.js on a Tumblr blog.
  2. Open the Tumblr login page with autofilled credentials in another tab.
  3. Chrome consolidates the blog and login page into the same process due to same eTLD+1.
  4. Spook.js recovers the autofilled password from the login 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.

This is a hardware-level attack that abuses how modern processors guess which way a program will branch and start executing instructions early. By measuring tiny timing differences in the processor's cache, malicious JavaScript can infer data from other tabs that are supposed to be isolated. The attack also uses a type confusion bug in Chrome's JavaScript engine to combine small memory addresses into full ones, letting it read more memory.

What is Info disclosure?

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

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.