DigiCert: Incorrect OrgID in S/MIME certificates for one customer
Categories
(CA Program :: CA Certificate Compliance, task)
Tracking
(Not tracked)
People
(Reporter: tim.hollebeek, Assigned: dcbugzillaresponse)
Details
(Whiteboard: [ca-compliance] [smime-misissuance])
Attachments
(1 file)
|
6.63 MB,
text/csv
|
Details |
Steps to reproduce:
Incident Report
Summary
During the collection of sample certificates for our auditors during our annual Webtrust audit a similar issue to bug https://bugzilla.mozilla.org/show_bug.cgi?id=1898986 was found.
Impact
70,204 SMIME Certificates for a single customer.
Timeline
All times are UTC.
24 May 2024 21:51: Patch rolled out and validation restarted . This patch blocks a value the system does not recognize as a valid registration number from being entered if the NTR registration number is selected.
25 May 2024 23:08: https://bugzilla.mozilla.org/show_bug.cgi?id=1898986 bug posted.
21 June 2024 16:12: Bug 1898986 closed.
24 October 2024 19:00: Based on a potential discrepancy noticed while collecting Webtrust audit samples, our data analytics team scanned for certificates for NTRUS and asked the internal audit team to investigate. Audit team investigated and noted they believed this to be in error and sent it to the leadership team to confirm.
25 October 2024 16:56: Incident was confirmed and certificates scheduled for revocation.
25 October 2024 23:20: The data team re-ran the scan using using just NT and Gov. This scan covered all regions, no additional certs were found.
30 October 2024 16:00: All remaining impacted certificates are scheduled for revocation.
Root Cause Analysis
During the remediation of 1898986, we patched the validation system to prevent inclusion of new identifiers with “NTR“+ “Government entity”. We also searched for all associated validations.
Unfortunately, when that search was done the scan was for "NTRDE" + "Government entity" as that was the context of the bug. The data team did not fully consider that other countries could have this same problem. This recent finding was for one with NTRUS+CA-Government Entity
This time, we corrected the scanning logic to include “NT” + “Gov” across the full system. We are adding additional upstream blocks in the validation system and in pkilint so that in the future there aren’t single points of failure that can cause this issue to recur.
Lessons Learned
What went well
- The error was caught internally during a normal review process .
- All certificates will be revoked within BR timelines.
What didn't go well
- The initial scan during 1898986 did not take into consideration countries other than Germany.
Where we got lucky
- The incorrect organization identifier impacted only 1 further customer.
- Customer is using our automation product so these certificates can be replaced silently with limited impact to end users.
Action Items
Action items and an affected certificates list will be provided in the full report.
Updated•2 years ago
|
| Reporter | ||
Comment 1•2 years ago
|
||
Still working on the full report.
| Reporter | ||
Comment 2•1 year ago
|
||
Incident Report
Summary
On October 25th, the DigiCert internal audit team found a certificate with an incorrect organizationIdentifier. The field included an NTR for a government entity, which is similar to Bug 1898986. DigiCert investigated the issue and found that there was a code path on one system that allowed continued issuance of incorrect certificates if a) the customer is using a system marked for deprecation next year, b) the validation was still valid, and c) and validation was completed before the fix was deployed on 2024-05-24. Only one customer met all three criteria. We missed this one customer during the previous bug as the data team searched only for German companies. For this bug, the data team expanded their certificates to all entities.
Impact
One customer had incorrect organizationIdentifier information included in 70,204 SMIME certificates. This customer utilized DigiCert’s automation tools and was able to replace all certificates within the required timeframe.
Timeline
All times are UTC.
2023-7-12: DigiCert creates the organizationIdentifier for the County of San Diego. This is created improperly with GOVUS+CA
2024-05-25 16:08: DigiCert files Bug 1898986( https://bugzilla.mozilla.org/show_bug.cgi?id=1898986) reporting an issue where the organizationIdentifier in S/MIME certificates used NTR with “government entity”. The issue was caught by DigiCert’s internal audit team and patched on 2024-05-24, the day before the bug was filed.
2024-10-24 19:00: DigiCert’s internal audit team finds a certificate with the incorrect organizationIdentifier information. In this case, “County of San Diego” has an NTR but is a government entity. The certificate was found while collecting WebTrust audit samples. The internal audit team escalates the issue to DigiCert leadership to review.
2024-10-25 16:48: DigiCert’s leadership team reviews the ticket and confirms the certificate is incorrect. An incident response team is created and an incident channel is created. The data team is asked to scan all certificates where NTR was used with a government entity.
2024-10-25 23:20: DigiCert’s data team completes a scan for all additional organizationIdentifiers that mix NTR and government entity. All certificates found had GOVUS+CA as the identifier.
2024-10-30 11:30: DigiCert revokes all impacted certificates.
Root Cause Analysis
The root cause is identical to Bug 1898986 as the validation team used the incorrect identifier. The root cause of why this issue was not caught during the previous review is that the data team scoped their search too narrowly. The team searched only for “NTRDE” and not for other countries. During this incident they searched for anything that started with NT and included the term “Gov”. Even though we patched all validation systems, one issuing system still allowed issuance with the incorrect validation information. We added a check in the SMIME issuing systems to verify the Org ID value and status of the Org ID each time.
Lessons Learned
We implemented a better review process on the scope of scans run by the data team during bug reviews.
What went well
The customer had automation enabled and easily replaced all impacted certificates.
All certificates were revoked within the required timeframe.
The error was detected during our normal certificate review process.
What didn't go well
The initial scan in bug 1898986 did not consider countries other than Germany.
The patch fixed all new validation and issuance on newer systems but missed a race condition on one system.
Where we got lucky
The incident impacted only 1 customer.
Action Items
| Action Item | Kind | Due Date |
| We implemented an API check to verify the Org ID value and status of the organization for each SMIME certificate request. This was applied to both the old and new systems. | Preventative | 11-5-2024 |
Appendix
Details of affected certificates
Attached to bug.
| Reporter | ||
Comment 3•1 year ago
|
||
| Reporter | ||
Comment 4•1 year ago
|
||
We have nothing further on this bug.
| Reporter | ||
Comment 5•1 year ago
|
||
Status unchanged.
| Reporter | ||
Comment 6•1 year ago
|
||
Any questions?
| Reporter | ||
Comment 7•1 year ago
|
||
Still watching.
| Reporter | ||
Comment 8•1 year ago
|
||
We will be updating bugs on Mondays over the holidays.
| Reporter | ||
Comment 9•1 year ago
|
||
Happy holidays!
| Reporter | ||
Comment 10•1 year ago
|
||
Onward to 2025!
| Reporter | ||
Comment 11•1 year ago
|
||
Nothing new here.
| Assignee | ||
Comment 12•1 year ago
|
||
Incident Description:
We found one customer that had an NTR orgID using "GOVUS+CA". This isn't the correct way of expressing an orgID for a government customer. Previously, it had been assumed that the scope of the problem was limited to issuance in Germany, and that was almost completely true, except for certificates issued by a legacy system that is scheduled to be shut down this year. The validations also had to be done before the fix was deployed and still be valid. These certificates were found internally by a DigiCert employee during one of our reviews.
Incident Root Cause(s):
The remediation of the previous issue should have looked for non-German certificates, but didn't.
Remediation Description:
Once we became aware there were non-German certificates out there, we confirmed that this one customer is the only one that was missed. Since the customer was using automation, and these are S/MIME certificates, it was fairly straightforward to replace them all. All certificates were revoked within the mandated time period.
Even though the underlying software issue was already fixed, additional issuance checks were also added to prevent this issue from resulting in certificate issuance, to prevent any possible way for this problem to recur.
| Assignee | ||
Comment 13•1 year ago
|
||
Requesting closure on this bug since all actions are complete and a closing summary has been posted.
Updated•1 year ago
|
| Assignee | ||
Comment 15•1 year ago
|
||
Please close.
Thank you.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•