Firefox for Android: Location Bar Spoofing Risk - The Location Bar remains hidden when the user manually scrolls down a webpage and another website is loaded during this scroll event
The Firefox for Android location bar stays hidden when a user scrolls down a page and a slow-loading malicious page is loaded, allowing a fake location bar to be shown. An attacker could mislead the user about the true website address and SSL status.
Originally disclosed on Mozilla
- Fixed in 17 days
- Paid in 35 days
- Disclosed after 17 days
Created attachment 8779095
TestCase1.zip
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160726073904
Steps to reproduce:
[A demonstration video will be uploaded to show you the malicious result of this security bug]
-----
Step1 : Go to http://www.alternativ-testing.fr/Research/Mozilla/android/~F5g9M-Addressbar-Spoofing-j3U7k~/index-start.html
-----
Step2 : Go down into this webpage (the location bar disappears) , during this event a malicious webpage which is slow to load will start its loading without that the Location Bar shows its web address (and the Location Bar remains hidden).
(During the slow loading of the malicious website, a link specially crafted can be clicked).
<!>Step2 INFO : The loading time of the malicious webpage is 9 seconds when you go on the testcase link ( http://www.alternativ-testing.fr/Research/Mozilla/android/~F5g9M-Addressbar-Spoofing-j3U7k~/index-start.html ) but can be changed by a bigger loading time. (The PHP code of the "redirect-and-sleep().php" can be changed by a bigger or smaller loading time).<!>
-----
Step3 : After going down into the webpage "index-start.html", the user can click on the link "https://www.google.fr" (before the loading of the malicious webpage which is 9 seconds ) or wait the loading of the malicious website after the scrolling down.
-----
Actual results:
A faked Location Bar is shown instead the true location bar which remains hidden.
When you go on a webpage specially crafted which uses a slow loading to a malicious webpage/website during you scroll down into this first webpage, the Location Bar disappears (even if another website/webpage is loaded), if an user clicks on a link which hasn't effect (crafted specially to mislead the user which thinks that the link goes on the website indicated or of its choice) the Location Bar is always invisible when the malicious Webpage is loaded and this malicious webpage contains a faked Location Bar leading to a Location Bar URL / SSL Spoofing Risk.
Expected results:
The Location Bar should reappear and be always visible when another webpage is loaded but it is not the case for this security bug.
When a webpage is slowly loaded by another webpage, and even if you go down on this webpage (manually scroll down) and that the Location Bar disappears , The Location Bar should be normally visible when another webpage is loaded.
The Location Bar should be always visible when another website or another webpage is loaded.
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 does not re-show the location bar when a new page starts loading if the user has scrolled down, so the bar remains hidden.
Impact
An attacker could spoof the location bar and SSL status to mislead the user about the true website, potentially facilitating phishing.
What the attacker needed
Firefox for Android; victim scrolls down the page; victim clicks a crafted link or waits
How it was found
- Open the test page in Firefox for Android.
- Scroll down the page so the location bar disappears.
- While scrolled down, a slow-loading malicious page starts loading without the location bar showing its address.
- Click a crafted link or wait for the malicious page to load, which displays a fake location bar.
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 location bar is the address field at the top of the browser that shows which website you are on. In this bug, if you scroll down a page, the bar hides, and if a new page loads slowly while you are still scrolled down, the bar does not come back. An attacker could then show a fake address bar to trick you into thinking you are on a trusted site.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.