Skip to content
XSS Disclosed report Intermediate CVE-2024-31393

JavaScript URLs load when dragged to address bar, bypassing restriction on them (Potential UXSS)

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 4 days
  • Paid in 10 days
  • Disclosed after 4 days
Text
Created attachment 9379376
fxios-jsurl-uxss.mov

Firefox for iOS normally disallows top-level navigation to `javascript:` URLs.
However, this limitation can be bypassed by drag-and-drop a `javascript:` URL into the address bar.
This behavior has potential use for Universal XSS attacks.

The following page is a reproduction case of this attack.
https://csrf.jp/2024/fxios-jsurl.php

In this page, when you drag a URL link, the page is switched to `www.google.com`.
And when you drop the link into the address bar, the script is executed on `www.google.com`.

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. 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.

What is known

A medium-severity XSS bug in Browser. Mozilla made it public on 14 February 2024 as CVE-2024-31393.

About XSS

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 Muneaki Nishimura

View all

74 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.