Firefox Lite Full Address Bar Spoofing w/ Secure Padlock by Open Copied Link on the Address Bar
Firefox Lite kept showing the target URL and a secure padlock in the address bar while a page was still loading or had failed to load, so a malicious page could display fake content under a trusted address. An attacker could trick a user into believing they were on a legitimate site such as Google.
Originally disclosed on Mozilla
- Fixed in 4 months
- Paid in 3 months
- Disclosed after 4 months
Created attachment 9191666 testcase.html
It is possible to spoof Firefox Lite full address bar with secure padlock, by typing or pasting URL on website with empty response body (https://www.google.com/csi) or closed port (https://www.google.com:82) to the address bar.
While Firefox Lite loads the content, the target website URL stays on the address bar, so we can spoof current content using unbeforeunload event.
Browser tested:
Firefox Lite 2.5.2 (20647) WebView version: 86.0.4240.198 (released on Nov 11th, 2020)
Steps to Reproduce:
- Visit attached testcase.html
- Tap "Copy URL"
- Tap on the address bar
- Tap "Open Copied Link"
- Address bar show: https://www.google.com/csi?response_type=auth&client_id=...
- Spoofed content show: Sign in to continue to Google Drive
Mitigation:
Currently I can't reproduce this on another WebView browser:
- FOSS Browser on Google Play
- Yandex Browser Lite
They do mitigate this spoof vulnerability by only displaying website on the address bar when it successfully 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 updated the address bar with the requested URL before the page had actually loaded, and did not revert it when loading failed or was replaced by other content.
Impact
A user could be shown fake content under a trusted address with a secure padlock, which may help phishing; the reporter notes other WebView browsers were not affected because they only show the address after a successful load.
What the attacker needed
Firefox Lite 2.5.2 on Android; victim opens attacker page; victim taps Open Copied Link
How it was found
- Open the provided test page in Firefox Lite.
- Tap the 'Copy URL' button.
- Tap the address bar.
- Tap 'Open Copied Link'.
- Observe the address bar showing the Google URL while spoofed content is displayed.
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.
A browser's address bar is meant to tell you which website you are really on. Here, the browser showed the address of a trusted site and a padlock (the symbol meaning the connection is secure) even though the page shown was controlled by someone else. That lets an attacker make a fake login page look genuine.
What is Mobile?
Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.