Skip to content
XSS Disclosed report Intermediate CVE-2023-5758

XSS on the domain reader in the firefox browser application for IOS

The Firefox for iOS Reader mode feature accepted a URL parameter that allowed a javascript: scheme, leading to cross-site scripting when the reader mode was activated. An attacker could execute arbitrary JavaScript in the context of the local reader domain.

Irwan Follow

Originally disclosed on Mozilla

  • Fixed in 49 days
  • Paid in 54 days
  • Disclosed after 49 days

Hi team. As explained in https://hackerone.com/reports/2117521, I will be moving a vulnerability issue in an IOS app, which should be reported on the bugzilla form.

I found XSS in the Reader mode feature on the Firefox for IOS application, maybe this is also affected on Android. I see that the domain of the reader feature is http://localhost:6571, You can see the domain reader when opening https://hackerone.com/irwanjugabro, and the reader detects "connections is not secure" when you use the reader feature.

production steps:

  1. download the firefox browser for IOS
  2. then open the domain from the following reader features:
  1. after that, then click on the reader mode feature, then XSS will be triggered, because the redirect url that has been set to be javascript:alert(1)

Impact

XSS on the domain reader in the firefox browser application for IOS

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

What the attacker needed

Firefox for iOS installed; victim opens a crafted link

How it was found

  1. Download the Firefox browser for iOS.
  2. Open the reader mode URL with a javascript: scheme in the url parameter.
  3. Click on the reader mode feature to trigger the XSS.

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.

Reader mode is a feature that strips away clutter from web pages. The report shows that a special link could make the reader page run harmful code, because it did not check what kind of link it was given. This could let an attacker run their own code in the browser.

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 Irwan

View all

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