Full UXSS via opening Firefox Focus externally after silent background navigation
Firefox Focus on iOS could be tricked into running JavaScript in the context of a different site by opening a custom URL scheme after a silent background navigation. An attacker could execute script in the victim's browser session for any origin, leading to full universal cross-site scripting.
- Fixed in 3 months
- Paid in 4 months
- Disclosed after 3 months
We are able to achieve Full UXSS by calling iOS Firefox Focus externally after silent background navigation.
PoC:
https://pwning.click/googleloc.php (Open in Firefox Focus and leave the browser, last thing user has seen is only
https://pwning.click/googleloc.php)
<script>setTimeout(function() {location="https://google.com"}, 3000);</script>
https://pwning.click/focuslink.php (Open with other browsers/apps like iOS Chrome)
<a href="firefox-focus://open-url?url=javascript:document.write(document.domain)">Open with Firefox Focus</a>
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the custom URL scheme handler did not validate or isolate the URL it was asked to open, allowing a javascript: URL to run in the context of the page that had been navigated to in the background.
What the attacker needed
Victim uses Firefox Focus on iOS; victim opens attacker page and leaves browser; victim opens a second attacker page; victim taps a link to the custom scheme
How it was found
- Open the first page in Firefox Focus and then leave the browser; the last visible page is that first page.
- The first page silently navigates the browser to a target site after a short delay.
- Open the second page in another browser or app.
- Tap the link that uses the Firefox Focus custom URL scheme to open a javascript: URL.
- The script runs in the context of the target site, demonstrating UXSS.
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 report has not been written yet. The Original tab links to the source.
Universal cross-site scripting (UXSS) is a bug where a browser is fooled into running attacker script as if it belonged to another website. Here, a page first quietly navigates the browser to a target site while the user is not looking, then a link using a special Firefox Focus address makes the browser run script in that site's context. This breaks the browser's main safety rule that scripts from one site cannot touch another site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.