Skip to content
Open redirect Disclosed report Intermediate

Address bar spoofing with open redirect url in arbitrary domains

Firefox for iOS displayed the URL of an open redirector in the address bar while the page content remained from the original malicious site. An attacker could spoof the address bar to make a malicious page appear as a trusted domain.

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 11 months
  • Paid in 4 months
  • Disclosed after 11 months
Text
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.22 Safari/537.36

Steps to reproduce:

When Firefox for iOS opens a redirect URL to an invalid scheme the address bar shows the redirector's URL but the browsing context is still caller's origin.

For example, if a malicious web site (mallory.csrf.jp) opens following open redirector in Slack,
https://slack-redir.net/link?url=nttps%3A%2f%2f
then address bar shows above URL but the context is still malicious web site (i.e., mallory.csrf.jp).

It can be used for address bar spoofing attack with bypassing a protection that was introduced by Bug 1224910.

The following link is a PoC of the issue.
https://mallory.csrf.jp/ios/spoofing4.html


Actual results:

The address bar in a new window shows "https://slack-redir.net/..." but the origin of this window still remains unchanged so the opener (mallory.csrf.jp) can change its document.body to the text 'Pwned'.


Expected results:

It should behave as Bug 1224910.

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 update the origin of the new window when handling a redirect to an invalid scheme, leaving the address bar showing the redirector's URL while the document remained controlled by the opener.

Impact

An attacker could spoof the address bar to make a malicious page appear as a trusted domain, potentially bypassing protections against address bar spoofing.

What the attacker needed

Victim uses Firefox for iOS; attacker controls a website; open redirector available

How it was found

  1. A malicious website opens an open redirect URL with an invalid scheme in a new window.
  2. The address bar shows the redirector's URL, but the window's origin remains the malicious site.
  3. The malicious site can then modify the new window's content.

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 you visit a website, the address bar shows the site's address. This bug let a malicious site open a redirect link, but the address bar showed the redirector's address while the page still belonged to the malicious site. So an attacker could make it look like you were on a trusted site when you were not.

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.