One Trigram At A Time Xsleak Via Universal Css Injection And Dos In Opera (gx)
Opera GX automatically installs GX Mods when a user visits a page referencing a .crx file, and a mod's CSS is applied to every page and tab. The researchers abused this to inject attacker-controlled CSS universally, building a cross-site leak that recovers a victim's Gmail address one trigram at a time, and also found that installing a .crx in Incognito crashes the browser.
zhero-web-sec.github.io
Published on zhero-web-sec.github.io
This paper focuses on a critical browser vulnerability discovered in Opera GX that allows cross-site data exfiltration simply by visiting an attacker-controlled website, without requiring any user interaction. By abusing the browser’s GX Mods feature, what initially appears to be a harmless customization mechanism can…
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 auto-installs GX Mods from any visited .crx file without a permission prompt and applies their CSS globally to all pages, giving attacker CSS a browser-wide scope.
Impact
An attacker could recover a victim's Gmail address from arbitrary sites with no interaction beyond visiting a malicious page, and could crash the browser (losing all open tabs) by getting a .crx loaded in Incognito; the text notes the leak was limited by page crashes until the load was reduced.
What the attacker needed
Opera GX (or Opera for the crash); victim visits attacker page; no user interaction needed
The fix
The vulnerability was fixed by Opera before publication, after being reported through its bug bounty program.
How it was found
- Host a .crx file containing a GX Mod whose stylesheet holds the exfiltration rules.
- Get the victim to visit a page that embeds the .crx in an iframe, so the mod installs automatically.
- The mod's CSS is applied to every page and tab the victim opens.
- Selectors match substrings of the Gmail address in a page attribute and set CSS variables holding attacker URLs.
- A single background-image declaration consumes all variables, causing the browser to request each matching URL.
- The attacker reconstructs the address from the received query strings using trigram overlap.
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 browser add-on called a GX Mod is meant only to change how the browser looks, and Opera GX installs one automatically when you open a page that points to it. Because a mod can carry a stylesheet (CSS, the code that controls how pages look), the attacker's styling rules run on every site you visit. Those rules can quietly make your browser fetch a web address when a page contains a certain piece of text, which lets the attacker learn that text without ever reading the page directly.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.