Fenix password manager is fooled by origin of http auth prompt, suggests passwords for the completely wrong site
Firefox for Android's password manager suggested saved credentials for apple.com when an HTTP authentication prompt was triggered from a different origin. An attacker could trick the browser into offering the wrong site's password to a page they control.
Originally disclosed on Mozilla
- Fixed in 22 days
- Paid in 29 days
- Disclosed after 22 days
Created attachment 9220022
Screenshot_20210428_182959_org.mozilla.firefox.jpg
+++ This bug was initially created as a clone of Bug #1708107 +++
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Firefox for Android
Steps to reproduce:
1) Open this URL - http://designs.ndev.xyz/test/new.html
2) Click on the 'Click here to Open Apple.com'.
3) Wait for 1 second.
Actual results:
POC videos -
Android - https://youtu.be/SbQMQt86KKw
As you can see in the screenshot the http auth is suggesting the password of apple.com
Expected results:
The Fenix password manager should NOT be suggesting passwords that don't match the source of the http auth.
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 password manager matched the HTTP authentication prompt against the wrong origin, so it treated the requesting page as apple.com rather than the actual source.
What the attacker needed
Firefox for Android (Fenix); saved password for another site; victim opens attacker page
How it was found
- Open the provided test URL in Firefox for Android.
- Tap the link labelled to open Apple.com.
- Wait briefly for the HTTP authentication prompt to appear.
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.
When a website asks for a username and password using a built-in browser popup, the browser should only offer passwords saved for that exact site. Here it offered the apple.com password on a page from a different site, so a malicious page could collect credentials meant for another service.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.