Skip to content
Mobile Disclosed report Intermediate CVE-2021-23989

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.

Irvan Kurniawan Follow

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:

  1. Visit attached testcase.html
  2. Tap "Copy URL"
  3. Tap on the address bar
  4. Tap "Open Copied Link"
  5. Address bar show: https://www.google.com/csi?response_type=auth&client_id=...
  6. Spoofed content show: Sign in to continue to Google Drive

Mitigation:

Currently I can't reproduce this on another WebView browser:

They do mitigate this spoof vulnerability by only displaying website on the address bar when it successfully loaded.

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

  1. Open the provided test page in Firefox Lite.
  2. Tap the 'Copy URL' button.
  3. Tap the address bar.
  4. Tap 'Open Copied Link'.
  5. 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.

More by Irvan Kurniawan

View all

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

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.