Skip to content
Open redirect Disclosed report Intermediate CVE-2025-27426

Firefox Mobile iOS Full Address Bar Spoof Using Server-Side Redirect to internal://local/errorpage

Firefox for iOS allowed a server-side redirect to an internal error page whose URL parameter controlled the address bar, while the tab's origin remained the attacker's site. An attacker could then use a cross-window reference to replace the page content with a fake login form, making the address bar show a trusted site.

Renwa Hiwa Follow

Originally disclosed on Mozilla

  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 3 months
Text
Created attachment 9439574
ScreenRecording_11-24-2024 18-32-54_1.mp4

Hey Firefox Team

While looking at Firefox for iOS I noticed that using a server-side redirect (307,308...) we can redirect the browser to any location including local URIs, digging deeper I found out that Firefox uses internal://local/errorpage to deliver errors about if the page fails to load, When an error is happening the address bar will become value of url parameter which is present inside the internal URI and also another thing is that the origin of the tab will become the redirector. Here is in a simple manner:

- User visits ff.php and taps a button
- New tab is opened pointing to ff.php?redirect which will do a server-side redirect to internal://local/errorpage?url=https://www.google.com/login&code=0&domain=&description=Redirection%20to%20URL%20with%20a%20scheme%20that%20is%20not%20HTTP(S)&timestamp=1732440620327
- Address bar of the tap will become www.google.com/login which we have set it inside the url parameter 
- Origin of the opened tab will become the redirector which was attacker.site
- Using cross-window reference we access the tab and change it's contents to a fake login page
- Now address bar is Google and contents are controlled by the attacker

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

Video POC: ScreenRecording_11-24-2024 18-32-54_1.mp4

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

Mitigation: Don't allow server-side redirects internal://

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 internal error page trusted a URL parameter to set the displayed address without validating that the redirect target was a normal web address, and the tab's origin stayed with the redirecting site.

Impact

An attacker could show a fake login page with a trusted address in the address bar, potentially stealing credentials, though the report does not demonstrate actual credential theft.

What the attacker needed

Victim uses Firefox for iOS; victim visits attacker's page and taps a button

The fix

The report suggests that server-side redirects to internal:// should not be allowed.

How it was found

  1. User visits the attacker's page and taps a button.
  2. A new tab opens to a URL that performs a server-side redirect to the internal error page with a chosen URL parameter.
  3. The address bar shows the chosen URL, while the tab's origin remains the attacker's site.
  4. Using a cross-window reference, the attacker replaces the tab's contents with a fake login page.

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.

When a website redirects your browser to another page, the address bar normally shows the new page's real address. Here, a special internal error page let the attacker choose what the address bar displayed, while the page itself was still controlled by the attacker. The attacker could then swap in a fake login form, so you might type your password thinking you were on a real site.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

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.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.