Skip to content
Open redirect Disclosed report Intermediate

Localhost navigation bypass and address bar spoofing bugs in reader-mode

Firefox for iOS allowed navigation to a localhost reader-mode URL despite a previous block, and the address bar displayed a URL with an authinfo component and a redirector URL instead of the final content URL. An attacker could spoof the address bar to show a trusted domain while displaying content from another source.

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 2.1 years
  • Paid in 15 days
  • Disclosed after 2.1 years
Text
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Steps to reproduce:

1. Open http://mallory.csrf.jp/ios/spoofing5.html.
2. Tap the 2nd link in the page by any browser on your iOS device.



Actual results:

Reader-mode screen is show in Firefox for iOS and address bar shows https://[address removed]/link?url=https://threatpost.com...

This behavior has following three security problems.
1. Reader-mode hosted on http://localhost:6571 can be opened though it has been blocked due to Bug 1281204.
2. URL in address bar shows authinfo part in front of host name (e.g., foobarbaz.slack.com@) though it is prohibited due to Bug 1224906
3. URL in address bar shows 30x redirector URL but not the final URL that provides web contents to WKWebView


Expected results:

1. Localhost navigation should be blocked even through firefox: URL
2. Address bar should not show the authinfo part of URL
3. Address bar should show the final URL but not the 30x redirector URL

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.

How it worked

Root cause

Likely the browser failed to properly validate and display the final URL after redirects, and did not block navigation to localhost reader-mode URLs as intended.

Impact

An attacker could spoof the address bar to show a trusted domain while displaying content from another source, potentially phishing users.

What the attacker needed

Victim uses Firefox for iOS; victim taps a crafted link

The fix

The browser should block localhost navigation, strip authinfo from displayed URLs, and show the final URL after redirects.

How it was found

  1. Open the provided test page in a browser.
  2. Tap the second link on the page using an iOS device.

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.

This report is about the address bar in a mobile browser showing a misleading web address. A user could be tricked into thinking they are on a trusted site when they are actually viewing content from somewhere else, because the browser displayed a URL with extra login-like text and a redirect link instead of the real page address.

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

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.