Skip to content
XSS Disclosed report Advanced CVE-2024-1563

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.

James Lee Follow

Originally disclosed on Mozilla

  • Fixed in 3 months
  • Paid in 4 months
  • Disclosed after 3 months
Text
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>

The original report as published on Mozilla's Bugzilla, by James Lee. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

  1. Open the first page in Firefox Focus and then leave the browser; the last visible page is that first page.
  2. The first page silently navigates the browser to a target site after a short delay.
  3. Open the second page in another browser or app.
  4. Tap the link that uses the Firefox Focus custom URL scheme to open a javascript: URL.
  5. 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.

More by James Lee

View all

30 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.