certificates imported from the OS may also exist in the user's certdb, which creates a confusing trust situation
Categories
(Core :: Security: PSM, defect, P3)
Tracking
()
People
(Reporter: mozsecurity, Unassigned)
Details
(Whiteboard: [psm-backlog])
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
Steps to reproduce:
Imported the selfsigned CA certificate in the Windows trust store.
Imported the same CA certificate into Firefox trust store and do NOT set the checkboxes for trust it for websites/trust it for email.
Visited a website using a certificate signed by this CA.
Actual results:
Website loaded without any errors.
Expected results:
As I explicitly imported the CA certificate to have Firefox NOT trust it (all checkboxes off) it should NOT trust it.
I can't use remove/distrust button, because this only removes it from Firefox, which is of no use if it is in the OS trust store. Having it in the OS trust store is intended as the OS should trust it for other purposes which currently have no possibility to be restricted to this purposes, while Firefox should NOT trust it.
Updated•6 years ago
|
| Reporter | ||
Comment 1•6 years ago
|
||
Additional note: I tested on Firefox and had an antivirus program intercepting SSL traffic (so this will have changed default settings). For testing I had disabled SSL interception of the antivirus program to see the real used CA certificate. So you can compare this situation to someone having his antivirus deinstalled/replaced by another one without SSL interception. On systems without an (intercepting) antivirus program ever being installed, the situation regarding auto-imports of certificates from the Windows CA trust store might be different.
This doesn't change that I wanted to blacklist the CA certificate seen by Firefox and that this didn't work (at least not by removing the checkboxes), but it might help you to reproduce the configuration (will probably be like Firefox ESR default).
Comment 2•6 years ago
|
||
If the Certificate was loaded from the OS store then surely you'd have to distrust it there? Maybe we have a UX problem not indicating which ones are imported?
| Reporter | ||
Comment 3•6 years ago
|
||
I want to prevent the CA certificate being trusted in Firefox only. Thus I imported it explicitly and tried to remove trust by removing the checks.
I think that I read somewhere that certificates being "imported" by the antivirus MITM configuration are not shown in the UI.
If I manually import the same certificate and distrust it I would expect Firefox to honor this.
Comment 4•6 years ago
|
||
It's intended that users use OS management mechanisms for those certificates when this feature is enabled. When Firefox has a copy of a particular certificate in both the user's NSS certdb and in the set collected from the OS, I'm not 100% sure what the "right" behavior is with regard to trust settings.
| Reporter | ||
Comment 5•6 years ago
|
||
On many Windows systems (all with intercepting antivirus programs) this feature becomes enabled by default. I don't think that users know that they are supposed to have to manage the certificates in the OS and for some usage scenarios this isn't possible at all (without compromising security in another way).
I would say the "right" behavior would be having explicit distrust settings in Firefox overruling other trusts. If the user doesn't wish the distrust anymore, she/he can remove the distrust.
In example if a CA would have been compromised and the user manually installed a distrust in Firefox, but there is no distrust in the OS yet and the user has forgotten or is unable to import the distrust in the OS too, it is more secure to distrust the CA and protect the user against abuse than to ignore the users' wish. If it was an mistake the connection error dialog should inform the user that an explicit distrust record prevented the connection and that the user may correct it by removing the distrust if it was added by error.
Updated•6 years ago
|
Description
•