Skip to content
Open redirect Disclosed report Intermediate CVE-2017-5451

A click into the location bar can lead to a Location Bar Spoofing vulnerability (URL and SSL Spoofing) using the onblur event and change the URL size by a bigger URL size.

Firefox's location bar could be made to display the end of a URL rather than its beginning when a page's onblur handler lengthened the URL after the user clicked the address bar. An attacker could thereby show a trusted-looking address, including a secure-looking one, in place of the real site.

Jordi Chancel Follow

Originally disclosed on Mozilla

  • Fixed in 10 months
  • Paid in 10 months
  • Disclosed after 10 months
Text
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160502172042

Steps to reproduce:


(Only tested on Mac OS X).

A simple click on the location bar can lead to a Location Bar Spoofing (URL and SSL Spoofing).

Explication:

If an user click on the location bar and the ONBLUR event defines that the actual URL changes its size by a bigger size, (eg: http://www.yyy.com/ becomes http://www.yyy.com/#wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwhttps://www.bank.com/ ) , the end of the URL is shown instead of the start of this URL (so the location bar shows https://www.bank.com instead of http://www.yyy.com/# ).

-A demonstration video will be uploaded.

1) Open with Firefox "PoC v1 Part1.html" and click on the button "Step 1: ClickMe" 
(a popup window is opened)

2) Click on the location bar



Actual results:

The Location Bar is Spoofed and if the Malicious WebSite is secure , this leads to URL And SSL Spoofing



Expected results:

If an user click on the location bar and the ONBLUR event defines that the actual URL changes its size by a bigger size, the end of the URL is shown instead of the start of this URL.

Possible way to patch this vulnerability :

When an user click on the location bar , Firefox should continue to show the start of the visited URL instead of the end of this URL.

The original report as published on Mozilla's Bugzilla, by Jordi Chancel. 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 location bar scrolled to the end of a URL that grew while the address bar had focus, rather than keeping the start of the URL visible.

Impact

The location bar could be spoofed, and if the malicious site is served over a secure connection this could lead to both URL and SSL spoofing, misleading the user about which site they are visiting.

What the attacker needed

Victim clicks the location bar; page uses an onblur handler; popup window opened

The fix

Firefox should keep showing the start of the visited URL rather than the end when the URL grows after the user clicks the location bar.

How it was found

  1. Open the proof-of-concept page in Firefox and click the button that opens a popup window.
  2. Click on the location bar of that popup window.

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.

The address bar is meant to tell you which site you are on. Here, a page could react to you clicking the address bar by making its own address much longer, and the browser then showed the tail end of that address instead of the start. That let a malicious page appear to be a different, trusted 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 Jordi Chancel

View all

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