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

iOS Firefox Download UXSS

A universal cross-site scripting (UXSS) flaw was found in Firefox on iOS when a user downloads a link from inside a frame. The attacker could then run script in the top origin and steal cookies from any site.

James Lee Follow

Originally disclosed on Mozilla

  • Fixed in 6 months
  • Paid in 6 months
  • Disclosed after 6 months
Text
We are able to achieve UXSS by downloading link, from inside frame to Top Origin and any site like https://google.com (I need to confirm and find the PoC for this case).

This is worse than the past bug with download https://bugzilla.mozilla.org/show_bug.cgi?id=1653827 since this is UXSS allowing all of them and stealing cookies etc.

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 download handling for links inside frames does not keep the frame's origin separate from the top page's origin, so script can cross into the top origin.

Impact

The attacker could run script in the top origin and steal cookies from any site, which is worse than the earlier download bug.

What the attacker needed

Firefox on iOS; victim downloads a link inside a frame

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.

UXSS means a browser bug lets a malicious page run its own code on other websites you visit, as if that code belonged to those sites. Here, downloading a link from inside a frame on a page could let the attacker's script run on the top-level site and read its cookies, which are often used to keep you logged in.

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.