Closed Bug 1848306 Opened 3 years ago Closed 3 years ago

TWCA: CA certificate without EKU

Categories

(CA Program :: CA Certificate Compliance, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hcli, Assigned: hcli)

Details

(Whiteboard: [ca-compliance] [ca-misissuance] Next update 31-Oct-2023)

Steps to reproduce:

During investigation of another incident (https://bugzilla.mozilla.org/show_bug.cgi?id=1848240). We found the CA certificate does not have the extKeyUsage extension, and therefore not compliant to the Baseline Requirement for TLS certificates.

Preliminary Incident Report

Times are in UTC+8

  1. How your CA first became aware of the problem (e.g., via a problem report submitted to your Problem Reporting Mechanism, a discussion in the MDSP or CCADB public mailing list, a Bugzilla bug, or internal self-audit), and the time and date.

2023-08-11 10:00 I have received the notice from Bugzilla that a bug was posted by Mozilla that TWCA did not disclosed an intermediate CA certificate. When checking the CA certificate we realized it does not include the extKeyUsage extension (EKU) and not complying to the requirement in section 7.1.2.6.1 of the Baseline Requirements for TLS Certificates (BR) and section 5.3 of the Mozilla Root Store Policy (MRSP).

  1. A timeline of the actions your CA took in response. A timeline is a date-and-time-stamped sequence of all relevant events. This may include events before the incident was reported, such as when a requirement became applicable, a document changed, a bug was introduced, or an audit was performed.

2023-03-10 16:31 We were planning to replace the previous TLS-issuing CA certificate which is going to expire on 2023-10-28. The profile draft for new CA certificate did include the EKU.
2023-04-13 10:00 When checking the profile before the issuance, it was suggested that the profile should closely reference the previous CA certificate which does not have EKU.
2023-04-13 16:38 The CA certificate is issued without the EKU.
2023-04-20 16:38 7 days passed since the certificate issuance and the CA certificate is not disclosed in CCADB, thus in violation of MRSP.
2023-08-10 07:00 We have switched our TLS certificate issuance system to use the new CA key and certificate.
2023-08-11 10:53 We realized the certificate may not be compliant to the BR and the MRSP and started investigation.
2023-08-11 11:45 We confirmed the issue and were discussing remedial actions.
2023-08-11 11:50 We have switched certificate issuance back to the old CA certificate and stopped using the new CA certificate.
2023-08-11 16:20 We have decided to revoke the CA certificate in the timeframe required by the BR.

  1. Whether your CA has stopped, or has not yet stopped, certificate issuance or the process giving rise to the problem or incident. A statement that you have stopped will be considered a pledge to the community; a statement that you have not stopped requires an explanation.

We have stopped issue certificates from the CA certificate.

  1. In a case involving certificates, a summary of the problematic certificates. For each problem: the number of certificates, and the date the first and last certificates with that problem were issued. In other incidents that do not involve enumerating the affected certificates (e.g., OCSP failures, delayed responses, etc.), please provide other similar statistics, aggregates, and a summary for each type of problem identified. This will help measure the severity of each problem.

1 CA certificate, issued on 2023-04-13

  1. In a case involving TLS server certificates, the complete certificate data for the problematic certificates. The recommended way to provide this is to ensure each certificate is logged to CT and then list the fingerprints or crt.sh IDs, either in the report or as an attached spreadsheet, with one list per distinct problem. It is also recommended that you use this form in your list “https://crt.sh/?sha256=[sha256-hash]”, unless circumstances dictate otherwise. When the incident being reported involves an SMIME certificate, if disclosure of personally identifiable information in the certificate may be contrary to applicable law, please provide at least the certificate serial number and SHA256 hash of the certificate. In other cases not involving a review of affected certificates, please provide other similar, relevant specifics, if any.

The CA certificate:
https://crt.sh/?sha256=0ed5671aee9616cde7a2b1b3dd2398b6e11e591da9744922d8c32d17f67cca93

We are still in investigation and the next update will be provided no later than 2023-08-16.

Assignee: nobody → hcli
Status: UNCONFIRMED → ASSIGNED
Type: defect → task
Ever confirmed: true
Whiteboard: [ca-compliance] [ca-misissuance]

Hi,
We have scheduled to revoke the CA certificate on 2023-08-17.
We are still revising the SOP of CA certificate issuance and expecting it to be completed in this month.

The CA certificate has been revoked at 2023-08-17 14:59 UTC+8.

Final Incident Report

  1. How your CA first became aware of the problem (e.g., via a problem report submitted to your Problem Reporting Mechanism, a discussion in the MDSP or CCADB public mailing list, a Bugzilla bug, or internal self-audit), and the time and date.

2023-08-11 10:00 I have received the notice from Bugzilla that a bug was posted by Mozilla that TWCA did not disclosed an intermediate CA certificate. When checking the CA certificate we realized it does not include the extKeyUsage extension (EKU) and not complying to the requirement in section 7.1.2.6.1 of the Baseline Requirements for TLS Certificates (BR) and section 5.3 of the Mozilla Root Store Policy (MRSP).

  1. A timeline of the actions your CA took in response. A timeline is a date-and-time-stamped sequence of all relevant events. This may include events before the incident was reported, such as when a requirement became applicable, a document changed, a bug was introduced, or an audit was performed.

2023-03-10 16:31 We were planning to replace the previous TLS-issuing CA certificate which is going to expire on 2023-10-28. The profile draft for new CA certificate did include the EKU.
2023-04-13 10:00 When preparing for the issuance, the profile of previous CA certificate which does not have EKU was used.
2023-04-13 16:38 The CA certificate is issued without the EKU.
2023-08-10 07:00 We have switched our TLS certificate issuance system to use the new CA key and certificate.
2023-08-11 10:53 We realized the CA certificate may not be compliant to the BR and the MRSP and started investigation.
2023-08-11 11:45 We confirmed that the CA certificate is mis-issued and started discussing remedial actions.
2023-08-11 11:50 We have switched certificate issuance back to the old CA certificate and stopped using the new CA certificate.
2023-08-11 16:20 We have decided to revoke the CA certificate.
2023-08-17 14:59 The CA certificate has been revoked, within 7 days required by the BR.
2023-09-07 17:30 Posting this report

  1. Whether your CA has stopped, or has not yet stopped, certificate issuance or the process giving rise to the problem or incident. A statement that you have stopped will be considered a pledge to the community; a statement that you have not stopped requires an explanation.

We have stopped issue certificates from the CA certificate immediately.

  1. In a case involving certificates, a summary of the problematic certificates. For each problem: the number of certificates, and the date the first and last certificates with that problem were issued. In other incidents that do not involve enumerating the affected certificates (e.g., OCSP failures, delayed responses, etc.), please provide other similar statistics, aggregates, and a summary for each type of problem identified. This will help measure the severity of each problem.

1 CA certificate, issued on 2023-04-13, revoked at 2023-08-17 14:59

  1. In a case involving TLS server certificates, the complete certificate data for the problematic certificates. The recommended way to provide this is to ensure each certificate is logged to CT and then list the fingerprints or crt.sh IDs, either in the report or as an attached spreadsheet, with one list per distinct problem. It is also recommended that you use this form in your list “https://crt.sh/?sha256=[sha256-hash]”, unless circumstances dictate otherwise. When the incident being reported involves an SMIME certificate, if disclosure of personally identifiable information in the certificate may be contrary to applicable law, please provide at least the certificate serial number and SHA256 hash of the certificate. In other cases not involving a review of affected certificates, please provide other similar, relevant specifics, if any.

The CA certificate:
https://crt.sh/?sha256=0ed5671aee9616cde7a2b1b3dd2398b6e11e591da9744922d8c32d17f67cca93

  1. Explanation about how and why the mistakes were made or bugs introduced, and how they avoided detection until now.
    of disclosing intermediate CA certificates to the operational staff, and we did not revise the SOP of renewing CA certificate to add a step that the CCADB POCs must be noticed after CA certificate issuance.
  • For us renewing issuing CA certificate is not a frequent task, so we have not been actively updating related SOPs.
  • The operation team renewed the CA certificate in accordance with the existing outdated SOP. The profile of previous CA certificate (2014) was used.
  • We did not sufficiently communicated the new requirements to operation team and urged them to revise related SOPs.
  • The current SOP for renewing CA certificate is incomplete and has not incorporated all the changes in the requirements over the past few years.
  • There has been no test for CA certificate issuance in the verification environment, nor have checks been conducted using lint tools to ensure the correctness of the CA certificate.
  1. List of steps your CA is taking to resolve the situation and ensure that such a situation or incident will not be repeated in the future. The steps should include the action(s) for resolving the issue, the status of each action, and the date each action will be completed.
    We are revising our SOP of CA certificate issuance to ensure that disclosing CA certificate in the CCADB is done and must be confirmed by compliance staff.
  • Internally review all operational requirements, including BR, Root Program policies, and our CP/CPS, and create checklists for CA operational tasks (not limited to renewal of issuing CA certificate).
  • Provide the aforementioned checklists to the operations team and incorporate them into the SOP for CA operational tasks.
  • Whenever there are changes in the requirements, review and update the checklists in accordance with the changes.
  • Future CA certificate issuance will involve test issuance in the verification environment, and the correctness of the profile will be confirmed through lint tools. This measure will be included in the checklist.
  • We expect to complete the checklists by the end of October.
Whiteboard: [ca-compliance] [ca-misissuance] → [ca-compliance] [ca-misissuance] Next update 31-Oct-2023

In Comment #4, you indicated that your checklists would be completed by the end of October.
Please let me know when this has been accomplished so that we can close this matter.
Thanks,
Ben

Hi,

The checklists have been completed.
As stated in Comment #3, there are checklists for each CA lifecycle operations including but not limited to key generation and destroy, CA certificate issuance and revocation, CRL and OCSP service setups and end-entity certificate profile changes, and comprise requirements from CA/B forum, Root Program policies, and our CP/CPS.

There is a typo in Comment #6.
It should be "as stated in Comment #4" instead of Comment #3

I will close this on or about next Wed., 2023-11-01, unless there are comments or concerns.

Flags: needinfo?(bwilson)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(bwilson)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.