Open Bug 2087627 Opened 29 days ago Updated 26 days ago

Don't use secasn1d when processing a certificate package downloaded from LDAP

Categories

(MailNews Core :: Security: S/MIME, enhancement)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: KaiE, Assigned: KaiE)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 external files)

When Thunderbird fetches a recipient's certificate from an LDAP directory,
certFetchingStatus.js passe the value to nsIX509CertDB.importEmailCertificate.
PSM hands it to NSS's CERT_DecodeCertPackage (lib/pkcs7/certread.c), which
decodes PKCS#7 SignedData and Netscape certificate sequences with secasn1d
(SEC_ReadPKCS7Certs, SEC_ReadCertSequence).

The suggestion is to add a new parser that decodes the incoming data, and splits it into individual certificates.

The input passed to importEmailCertificate should be limited to byte strings that CERT_DecodeCertPackage will not run through secasn1d.

This text file contains the commit comment that claude code suggested for the patches that I'll attach, which explains the strategy of the change.

Assignee: nobody → kaie
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: