Universal XSS affecting Firefox
Firefox for iOS had insufficient checks to block JavaScript execution when returned via a Location response header, allowing an attacker to execute JavaScript in the context of the previously visited website. This could let the attacker read sensitive data like cookies or perform actions on the last visited domain.
This bug allowed an attacker to potentially execute malicious JavaScript on arbitrary origins.
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
Impact
An attacker could execute JavaScript on the previously visited origin, potentially reading sensitive data like cookies or the URL, and performing API requests to retrieve information such as search queries, but only for the last visited domain.
What the attacker needed
Victim uses Firefox for iOS; victim visits attacker-controlled site in same tab; attacker can return a malicious Location header
How it was found
- Victim opens Firefox for iOS and performs a search on the default search engine.
- Victim visits an attacker-controlled website in the same tab.
- The website returns a malicious Location header redirecting to a JavaScript URL.
- The browser executes the JavaScript in the context of the previously visited website.
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 normally keeps different sites separate so one site cannot read another's data. This bug let a malicious site run its own code as if it were the previous site you visited, so it could steal information from that previous site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.