Web sites can easily spoof the Master Password dialog
Categories
(Core :: Security: PSM, defect, P3)
Tracking
()
People
(Reporter: tpringle, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [kerh-coa][psm-backlog])
Attachments
(3 files)
Comment 2•23 years ago
|
||
Comment 3•22 years ago
|
||
Comment 4•22 years ago
|
||
Updated•22 years ago
|
Comment 5•21 years ago
|
||
Comment 6•20 years ago
|
||
Updated•19 years ago
|
Updated•19 years ago
|
Comment 8•19 years ago
|
||
Comment 9•19 years ago
|
||
Updated•19 years ago
|
Comment 10•19 years ago
|
||
Comment 11•18 years ago
|
||
Updated•18 years ago
|
Updated•18 years ago
|
Comment 13•18 years ago
|
||
Comment 14•17 years ago
|
||
Comment 16•17 years ago
|
||
Comment 17•17 years ago
|
||
Comment 18•17 years ago
|
||
Comment 19•17 years ago
|
||
Comment 20•17 years ago
|
||
Comment 21•17 years ago
|
||
Comment 22•17 years ago
|
||
Comment 23•17 years ago
|
||
Comment 24•17 years ago
|
||
Comment 25•17 years ago
|
||
Comment 26•17 years ago
|
||
Comment 27•17 years ago
|
||
Comment 28•17 years ago
|
||
Comment 29•17 years ago
|
||
Comment 30•17 years ago
|
||
Comment 31•17 years ago
|
||
Comment 32•17 years ago
|
||
Comment 33•16 years ago
|
||
Comment 34•16 years ago
|
||
Comment 35•16 years ago
|
||
Comment 36•16 years ago
|
||
Comment 37•16 years ago
|
||
Comment 38•16 years ago
|
||
Comment 39•16 years ago
|
||
Comment 40•16 years ago
|
||
Comment 41•16 years ago
|
||
Comment 42•16 years ago
|
||
Comment 43•16 years ago
|
||
Comment 44•16 years ago
|
||
Comment 45•16 years ago
|
||
Comment 46•16 years ago
|
||
Comment 47•16 years ago
|
||
Comment 48•16 years ago
|
||
Comment 49•16 years ago
|
||
Comment 50•16 years ago
|
||
Comment 51•16 years ago
|
||
Comment 52•16 years ago
|
||
Updated•14 years ago
|
Comment 53•14 years ago
|
||
Comment 54•14 years ago
|
||
Comment 55•14 years ago
|
||
Comment 56•14 years ago
|
||
Comment 57•14 years ago
|
||
Comment 58•14 years ago
|
||
Comment 59•14 years ago
|
||
Comment 60•14 years ago
|
||
Comment 61•14 years ago
|
||
Comment 62•14 years ago
|
||
Comment 64•13 years ago
|
||
Comment 65•13 years ago
|
||
Comment 66•13 years ago
|
||
Comment 67•13 years ago
|
||
Comment 68•13 years ago
|
||
Comment 69•13 years ago
|
||
Comment 70•13 years ago
|
||
Comment 71•13 years ago
|
||
Comment 72•13 years ago
|
||
Comment 73•13 years ago
|
||
Comment 74•13 years ago
|
||
Comment 75•13 years ago
|
||
Comment 76•13 years ago
|
||
Comment 77•12 years ago
|
||
Comment 78•12 years ago
|
||
Comment 79•12 years ago
|
||
Comment 80•12 years ago
|
||
Comment 81•12 years ago
|
||
Comment 82•12 years ago
|
||
Comment 83•12 years ago
|
||
Comment 84•11 years ago
|
||
Comment 85•9 years ago
|
||
Comment 86•8 years ago
|
||
Comment 87•8 years ago
|
||
Comment 88•8 years ago
|
||
Comment 89•8 years ago
|
||
Comment 92•7 years ago
|
||
Comment 93•7 years ago
|
||
Comment 99•5 years ago
|
||
Here is another example of an almost indistinguishable fake prompt. https://fakeauth.com
Comment 100•4 years ago
|
||
Imagine my surprise coming to report a security issue in Firefox and finding it already reported 20 years ago, when I was nine years old.
On Linux, the primary password prompt isn't even as system-integrated as the Mac modal; it's just a normal on-top window that doesn't block interaction with the rest of the browser. You'd have to switch tabs or drag it out form over the page to authenticate it, which I do, and which is starting to get on my nerves.
What's more, I suspect a lot of people are using the same primary password and Firefox Accounts password; the rise of Firefox Accounts makes this a more severe issue than it was previously.
Can we please swap the dialog for a doorhanger? Or at least make the dialog pop up outside the bounds of the page?
Also, as the component is now the "primary password", someone should update the issue title, if Bugzilla supports that, so it is easier to find in search.
Comment 101•4 years ago
|
||
(In reply to interfect from comment #100)
Yes, please make it a doorhanger. There is actually a seperate bug for this here: https://bugzilla.mozilla.org/show_bug.cgi?id=1149505
Comment 102•3 years ago
|
||
This seems to be fixed in Firefox with the "MR1" redesign in Firefox 90. The prompt still overlies the content area and is a simple design that could be replicated easily, but the entire window--including the toolbars and sidebars--is dimmed and non-functional behind the real prompt. A web page could still try to fake the overlay look a single page, and some victims might not notice the difference.
Then again, as a long time Firefox user the example from comment 99 is still pretty convincing even though it looks nothing like the prompt I've been using for the last few months (nightly versions got the change earlier). The fake uses the wrong word ("master" vs "primary") and has a completely different style, and I still might fall for it if I were in a hurry and not thinking. Not sure we can do much better though.
Do we still need this bug as a "PSM" bug, to potentially do something different by default in other applications? I don't think so -- PSM uses the prompt service so Gecko apps have the ability to style it in the most appropriate way for their app. PSM shouldn't second-guess that.
Comment 103•3 years ago
|
||
Turns out there are two versions of the primary password prompt now. If a tab triggers the prompt (e.g. first password form with a saved login, trying to see your passwords on about:logins
) you get the behavior I described, modal to that entire window. If a background process triggers the prompt (the one I see is sync, but maybe there are others) then the primary password prompt is a separate prompt-sized window, with slightly different coloring. Sometimes? I've seen both styles triggered by (I assume) sync.
This latter version is still pretty spoofable. The spoof can't be dragged outside the content area, or let the user switch between it and the tab it's floating on top of, but an unsuspicious user probably wouldn't notice.
Yeah, I don't think this is a PSM bug, unless the issue is that PSM should be using a different API than nsIPrompt.promtPassword.
Comment 105•3 years ago
|
||
Perhaps I could have a flag to ask for my master password, on startup, before the browser becomes visible? This way I could rest assured that it couldn't be spoofed based on accidental code changes, new CSS features, etc.
Comment 106•3 years ago
|
||
There are ways of forcing the master password on startup. One way that's a bit invasive is to set your startup page to an https site and turn on FIPS mode (Preferences->Privacy & Security->Security Devices->Enable FIPS). Firefox will then prompt for your password on startup.
FIPS mode is invasive in that it will restrict your cryptographic operations (usually in a more secure way), which could restrict access to websites that don't meet the FIPS criteria.
Having a startup page that forces some normal need to authenticate that works, but how to do that reliably escapes me currently.
Comment 107•3 years ago
|
||
If it is ALWAYS a drop-down-dialog, then maybe it can't be spoofed .
I generally hit the red-button-close-out to the dialog, if the dialog-box, is in the middle of the window .
Pleas ensure, that it is always a drop-down-dialog .
Comment 108•3 years ago
|
||
Oh -- BTW, I'm on a "Catalina" Mac Laptop .
Comment 109•3 years ago
|
||
(In reply to Clark C. Evans from comment #105)
Perhaps I could have a flag to ask for my master password, on startup, before the browser becomes visible? This way I could rest assured that it couldn't be spoofed based on accidental code changes, new CSS features, etc.
We have already implemented that approach for Thunderbird in bug 1610390
https://hg.mozilla.org/mozilla-central/rev/b4b71625fcfd
Unfortunately that code doesn't work on macOS, after bringing up the prompt early, it somehow causes the main application to no longer function correctly. That's why we disabled that workaround for macOS in bug 1612456.
Updated•2 years ago
|
Comment 110•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 14 duplicates, 37 votes and 83 CCs.
:keeler, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 111•2 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Description
•