Skip to content
XSS Disclosed report Intermediate CVE-2025-23108

Firefox Mobile iOS Full Address Bar Spoof Using Open in New Tab and Javascript: URI

A javascript: URI opened in a new tab on Firefox Mobile iOS caused the address bar to display a spoofed legitimate domain while executing attacker script. An attacker could present a fake login page under a trusted origin to steal credentials.

Renwa Hiwa Follow

Originally disclosed on Mozilla

  • Fixed in 46 days
  • Paid in 51 days
  • Disclosed after 46 days
Text
Hey Firefox Team

When a URL is javascript://google.com/ and we use (Open in New tab) feature in iOS the new tab is opened and the address bar will be google.com, using this bug we can enter a new line (%0a) and execute our script to insert a fake form or anything else want to be displayed inside the page as the URL will be google.com.

- User visits a webpage
- Inside the page we have a link saying open me inside a new tab
- New tap get's opened which is a Javascript URI and our script executes
- The script will change contents of the page to a fake login page
- User will enter his credentials thinking it's on a legitimate origin

POC: https://pwr.wtf/arc/fx.php

Video POC: ScreenRecording_11-25-2024 14-35-53_1.mp4

POC Source Code: https://pwr.wtf/arc/fx.php?source=1

Mitigation: If the URL is not http(s) don't change the address keep it empty or about:blank

Thanks
Renwa

The original report as published on Mozilla's Bugzilla, by Renwa. 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 browser failed to reset or blank the address bar when opening a non-http(s) URI in a new tab, allowing the displayed origin to be spoofed.

Impact

An attacker could spoof the address bar to display a trusted domain and steal credentials via a fake login page.

What the attacker needed

Firefox Mobile on iOS; victim clicks a link

How it was found

  1. User visits a webpage containing a link that opens in a new tab.
  2. The link uses a javascript: URI and is opened in a new tab.
  3. The script executes and the address bar shows a spoofed domain.
  4. The script replaces the page content with a fake login form.
  5. The user enters credentials believing they are on a legitimate origin.

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.

A javascript: link is a special kind of link that runs code instead of loading a normal web page. The bug is that when this link was opened in a new tab, the browser showed a trusted website name in the address bar even though the page was actually controlled by the attacker. This could trick someone into typing their password into a fake login form.

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 Renwa Hiwa

View all

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