NSS Netscape Certificate Sequences CERT_DecodeCertPackage() Crash

2019.03.21
Credit: Tavis Ormandy
Risk: High
Local: No
Remote: Yes
CVE: N/A
CWE: N/A

nss: CERT_DecodeCertPackage() crash with Netscape Certificate Sequences I noticed that the main entrypoint for decoding DER blobs in NSS, CERT_DecodeCertPackage(), actually handles multiple formats including PEM, PKCS7, and old Netscape Certificate Sequences. You can generate a Netscape Certificate Sequence with the OpenSSL nseq tool, I just did this: $ openssl nseq -in mail.google.com.pem -toseq -out nseq.pem I guessed that this format might not have been as well audited as others, so fuzzed it and it crashed with a NULL deref quickly. Test case attached, I'm guessing this means any client or server that handles untrusted certificates can be crashed, I didn't try it against Firefox. You can verify it like this: $ certutil -d \".\" -A -n test -t \"p,p,p\" -i nss-nseq-crash.der Segmentation fault I reported this upstream as a denial of service issue, some network daemons use NSS (like slapd, iirc) This bug is subject to a 90 day disclosure deadline. After 90 days elapse or a patch has been made broadly available (whichever is earlier), the bug report will become visible to the public. Found by: taviso@google.com


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top