Re: Opening Firefox v59 keystore with NSS
Hubert Kario <[email protected]> Thu, 25 Jan 2018 19:10:57 +0100
| Newsgroups | gmane.comp.mozilla.security |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, 24 January 2018 16:31:26 CET Renato Alves wrote: > Hi everyone, > > In the past, libnss could be directly initialized by simply pointing the > code to a location containing 'cert8.db' and 'key3.db'. This is the basis > of https://github.com/unode/firefox_decrypt a small tool I authored myself > with the help of several contributors. > > With Firefox 59 key.db and cert.db were modified to use an SQLite format > instead of Berkley DB format. After this change, direct initialization of > NSS is no longer possible (tested with older NSS and the latest 3.35). The > latest NSS reports "SEC_ERROR_LEGACY_DATABASE: The certificate/key database > is in an old, unsupported format.". The use of "old" in the error message > is a little misleading. yes, the message is misleading > With that said, is there any other way to initialize libnss to be able to > decode Firefox's profile credentials or is this feature no longer > supported? yes, the DBM database format is deprecated and will be removed in some time. There are multiple bugs in it that nobody is willing to fix and it is inherently insecure to use it with multiple applications that modify it at the same time. SQL database does allow safe parallel accesses and uses maintained code. Thus the switch. I'm afraid the tool will have to be modified to support the SQL format now. As an upside, it will now be safe to use it with Firefox running, provided all the necessary locking is performed. -- Regards, Hubert Kario Senior Quality Engineer, QE BaseOS Security team Web: www.cz.redhat.com Red Hat Czech s.r.o., Purkyňova 115, 612 00 Brno, Czech Republic _______________________________________________ dev-security mailing list [email protected] https://lists.mozilla.org/listinfo/dev-security
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEYeeuxEU+3unL/K+dkqjRuAHS9fUFAlpqHbEACgkQkqjRuAHS 9fUYGw/+JOdKZzAzzdGaaYzE4MhESc2XyUBTBLYXXEjlKqxmiJN2zbOIdLCOHAh/ cv9+uag4y65hmmPaWzoYgpFTOyduz7b7O8MMEbGEwrxmp40HSJJLHkE2uf2Z6o/w PqW2EYzNoSMSUq3Ct5QhX0dRM+d884jvKOOnpRbKvhPs62SPQFJOLuZ5wpGsxY9U 1+pE3RbfS92KtO1DBawbBaPOMsBKBUmgLzXi37HnE7Wsi+Sv3PUxeGOIJz78yOXx RkVkvUvle63CvCmzFL0RCLdPPK6XUa0GJG7syc+BA0ZEf4fc0nthsEkduWEhwvp1 fFJutw8FT7JNWlV/BzmyRSdjpv8ffCQuh33sn8N2JOPnNNMKorgSBq8SWSdYCDFC an6QRZ/MIJ0pvC0OLCuDAWB2/6utvOkbpadxiIwnv0GgG0OA9dlgLBogEs2V+gB0 Z+KA9Cpo4yVAZz6f+ovI1KD8IwAve0O0bwbhrv3BdnoPej6d1YvDFBWieheIu8wR KCU9PrOadR0piqqJuqyYdVFYPCoWgQkAbk8KjaJd1iDi+0+Jx1BI13nBROIwM6Bd uDPkGf9ohkeuIOvyJGKD4XGyr9+KL5z6Sw1QDBfy24MuCL6MpTeyqu2UEppRCZWQ jJC0D7qGIZbE4+wLdZST3InT8FGihYFSRgUzwy8rVVEAiuiCQDg= =B0Fx -----END PGP SIGNATURE-----