Google Trust Services: Challenges validated past expiry
Categories
(CA Program :: CA Certificate Compliance, task)
Tracking
(Not tracked)
People
(Reporter: gts-external, Assigned: gts-external)
Details
(Whiteboard: [ca-compliance] [dv-misissuance] Next update 2027-01-14)
Attachments
(1 file)
|
301.69 KB,
text/csv
|
Details |
Preliminary Incident Report
Summary
- Incident description: On 2026-11-10, GTS identified a bug in our validation code that allowed subscribers to complete certificate issuance that relied on challenges validated more than 30 days after the Random Value / Request Token was generated. GTS has deployed a code fix to production and revoked 818 unexpired affected certificates.
- Relevant policies:
- CA/Browser Forum TLS Baseline Requirements, Section 3.2.2.4.7 (DNS Change): "If a Random Value is used, the CA SHALL provide a Random Value unique to the Certificate request and SHALL not use the Random Value after (i) 30 days or (ii) if the Applicant submitted the Certificate request, the time frame permitted for reuse of validated information relevant to the Certificate..."
- CA/Browser Forum TLS Baseline Requirements, Section 3.2.2.4.19 (Agreed-Upon Change to Website - ACME): "The token (as defined in RFC 8555, section 8.3) MUST NOT be used for more than 30 days from its creation."
- GTS TLS CP/CPS, Sections 1.6.1 (Request Token validity limited to 30 days).
- Source of incident disclosure: Self-reported.
GTS will publish a full incident report by 2026-11-24. We kindly ask to set the nextUpdate field to then.
Updated•18 days ago
|
| Assignee | ||
Comment 1•5 days ago
|
||
| Assignee | ||
Comment 2•5 days ago
|
||
Full Incident Report
Summary
-
CA Owner CCADB unique ID: A004159
-
Incident description: Google Trust Services (GTS) identified an edge case bug in its ACME validation logic that failed to verify whether ACME authorizations in the RFC 8555 "pending" state had expired before validating an associated challenge. This defect allowed subscribers to validate challenges using tokens generated more than 30 days earlier and use the resulting authorizations for certificate issuance, exceeding the 30-day token validity limit. GTS deployed a fix to enforce authorization expiration before challenge validation, invalidated affected authorizations, and revoked 818 unexpired affected certificates. The issue was discovered during an AI assisted review of our codebase.
-
Timeline summary:
- Non-compliance start date: 2021-07-22
- Non-compliance identified date: 2026-11-10
- Non-compliance end date: 2026-11-11
-
Relevant policies:
- CA/Browser Forum TLS Baseline Requirements v2.3.1, Section 3.2.2.4.7 (DNS Change): "If a Random Value is used, the CA SHALL provide a Random Value unique to the Certificate request and SHALL not use the Random Value after: 1. 30 days; or 2. if the Applicant submitted the Certificate request, the time frame permitted for reuse of validated information relevant to the Certificate..."
- CA/Browser Forum TLS Baseline Requirements v2.3.1, Section 3.2.2.4.19 (Agreed-Upon Change to Website - ACME): "The token (as defined in RFC 8555, Section 8.3) MUST NOT be used for more than 30 days from its creation."
- GTS TLS CP/CPS v6.10, Section 1.1: "GTS conforms to the latest version of the following: CA/Browser Forum (CABF) Baseline Requirements for the Issuance and Management of Publicly-Trusted TLS Server Certificates (BR)"
- GTS TLS CP/CPS v6.10, Section 9.6.1: "By issuing a Certificate, GTS makes the certificate warranties listed in 9.6.1 of the CABF TLS Baseline Requirements."
-
Source of incident disclosure: Self Reported
Impact
- Total number of certificates: 1526 certificates identified at discovery including expired certificates. (see Additional considerations regarding ACME pre-authorizations)
- Total number of "remaining valid" certificates: 0 (818 known affected unexpired certificates were revoked)
- Affected certificate types: This incident affected Domain Validated (DV) TLS subscriber certificates (policy OID 2.23.140.1.2.1).
- Incident heuristic: This incident affected DV TLS certificates issued between 2021-07-22 and 2026-11-11 that relied upon an authorization whose challenge was validated more than 30 days after the challenge token was generated. Because challenge token creation and validation timestamps are internal to the CA issuance process and are not encoded in X.509 certificates or Certificate Transparency logs, a third party cannot assemble the corpus of affected certificates from public certificate data alone. All 818 unexpired affected certificates identified and revoked during incident response are disclosed in the Appendix; expired certificates are omitted.
- Was issuance stopped in response to this incident, and why or why not?: No. An expedited production fix rollout and invalidation of affected authorizations were already underway by the time the incident was confirmed.
- Analysis: N/A — revocation was not delayed; all 818 identified unexpired affected certificates were revoked within 24 hours.
- Additional considerations:
-
Validation assurance and security assessment: Domain control validation was performed and succeeded at the time of challenge completion. The primary security risk was a lingering-token scenario across a domain or operator transfer, where a prior registrant initiated an ACME order, provisioned the challenge response in DNS or HTTP without completing validation, relinquished the domain while the token remained in place, and later triggered validation to obtain an authorization.
-
Trigger conditions: The problematic case only triggers for this specific series of events:
Client creates an authorization via newOrder or newAuthz ACME requests.
Client does not validate any challenge for 30 days or longer (which is the expiry threshold for "ACME tokens"/"Random Values" in the BRs).
Client successfully completes Domain Control Validation (DCV) for a challenge attached to the authorization. A VALID authorization for this domain is now attached to the client's account.
Client creates a new order for the same domain. Existing order cannot be used since it correctly enforces expiry. The client doesn't need to complete DCV since their account already has a VALID authorization.
Client submits CSR and finalizes the order created in step #4. -
Identification method and limitations: Authorization records do not store the original challenge token creation time, so GTS could not query for affected certificates directly. GTS instead identified them using a heuristic. The token creation time was inferred from the creation time of the earliest unfinalized order that referenced the authorization, and was compared with the recorded challenge validation time.
-
Timeline
All times are UTC.
- 2021-07-22 15:42: (Non-compliance start) GTS submits a configuration change that unintentionally uncaps Random Value lifetimes.
- 2022-02-10 15:49: Following an internal review, GTS determines that the 30 day challenge token lifetime is not enforced. GTS concluded at the time that no certificates were affected. GTS submits code changes to enforce it, but misses the challenge validation path.
- 2026-11-10 00:09: (Non-compliance identified) During an AI/agent-assisted internal security code review of the ACME Registration Authority, a GTS engineer identifies that challenge validation does not verify whether a pending authorization has expired and files an internal bug.
- 2026-11-10 01:50: GTS initiates its internal incident response process to coordinate code remediation and historical impact analysis.
- 2026-11-10 03:04: GTS submits a code fix enforcing authorization expiration checks prior to challenge validation, along with regression unit tests.
- 2026-11-10 15:54: GTS begins a rollout to deploy the fix.
- 2026-11-10 16:10: Correlation of audit logs and order database records confirms the first instance of a certificate issued using a challenge token validated more than 30 days after creation.
- 2026-11-10 18:47: The GTS Policy Authority formally declares a public compliance incident.
- 2026-11-10 20:52: GTS finalizes the revocation scope at 818 unexpired certificates whose challenge tokens were validated more than 30 days after creation.
- 2026-11-10 22:00: GTS completes revocation of all 818 unexpired affected certificates.
- 2026-11-11 01:40: Rollout completes.
- 2026-11-11 01:42: (Non-compliance end) GTS completes administrative deactivation of 37 remaining valid authorizations associated with stale orders so they cannot be reused for subsequent certificate issuance.
- 2026-11-11 01:52: A post-deployment sweep confirms no additional affected certificates were issued during the rollout window.
- 2026-11-11 02:59: GTS delivers revocation notifications to affected subscribers.
- 2026-11-11 21:41: GTS publishes the Preliminary Incident Report on Mozilla Bugzilla.
Related Incidents
| Bug | Date | Description |
|---|---|---|
| 1654544 | 2020-07-22 | GlobalSign failed to expire or rotate Domain Validation Random Values after 30 days under BR Section 3.2.2.4.7, allowing domains to be validated with expired Random Values and subsequently used for certificate issuance. |
| 1878139 | 2024-02-01 | Sectigo invalidated prior email DCV Random Values when a resend was requested, but failed to expire existing Random Values after 30 days when no resend occurred—closely mirroring GTS generating a fresh authorization on a new post-expiry order while failing to expire an uncompleted pending authorization if validated directly after 30 days. |
| 1909948 | 2024-07-25 | GoDaddy verified domain validation freshness at request time, but an edge-case code path failed to re-verify that the validation remained within its permitted timeframe later in the issuance lifecycle. |
| 1978163 | 2025-07-18 | DigiCert enforced a validation cutoff on its primary validation path, but omitted the check on an alternate code path (CNAME alias reuse), paralleling GTS enforcing authorization expiration when rendering status or creating orders while omitting the check on the challenge validation path. |
| 1979457 | 2025-07-25 | Google Trust Services issued a certificate without recording the corresponding authorization audit log entry due to non-atomic writes; while a different failure mode, both incidents highlight how gaps in audit log recording complicate post-hoc compliance verification. |
| 2011713 | 2026-01-21 | TrustAsia's ACME service failed to enforce a required state and account precondition when reusing ACME authorizations across orders, requiring both certificate revocation and administrative invalidation of existing production authorizations. |
| 2021685 | 2026-03-07 | Certum failed to enforce a 30-day maximum age limit on mailbox validation evidence prior to certificate issuance, and encountered filtering limitations when reconstructing the full set of affected certificates from historical records. |
Root Cause Analysis
The primary defect was a missing expiration check on the ACME challenge validation code path. When retrieving a pending authorization to validate a challenge, the validation logic checked only that the stored status was pending and failed to evaluate the expiration timestamp, allowing challenges tied to expired pending authorizations to be validated more than 30 days after token creation.
Contributing Factor #1: Decentralized expiration evaluation across database read paths
- Description: GTS's ACME implementation originated while RFC 8555 was still an early draft (before an expired authorization state existed) and evolved incrementally to support pending authorizations, asynchronous validation, pre-authorizations, and cross-order authorization reuse. While GTS added helper logic to derive the expired status from the expiration timestamp when rendering ACME authorization responses to clients, determining authorization re-use for an order, and checking order readiness, lower-level database lookup APIs returned raw authorization records and relied on each caller to check both the stored status and the expiration timestamp. The challenge validation path failed to check expiration.
- Timeline: On 2022-02-10, the attempted fix was submitted. It did not check expiration prior to challenge validation. On 2026-11-11, the rollout of the fix was completed.
- Detection: Identified on 2026-11-10 during an internal security code review of the ACME Registration Authority.
- Interaction with other factors: This missing check at the database-read boundary was the direct mechanism that allowed expired pending authorizations to enter challenge validation; combined with Contributing Factor #2, validated authorizations were then stamped with a fresh lifetime and reused by subsequent orders.
Contributing Factor #2: State transition from pending to valid overwrote expiration without verifying prior expiration or recording creation time
- Description: When domain control validation succeeded for a challenge, the transitioning of authorization from pending to valid neither verified that the authorization was still unexpired nor preserved an immutable creation timestamp. Instead, it unconditionally overwrote the authorization's expiration timestamp with a new post-validation reuse lifetime. Overwriting the original expiration timestamp erased evidence that the challenge token was older than 30 days, making the newly validated authorization indistinguishable from a freshly created and validated authorization when evaluated for subsequent certificate orders.
- Timeline: This behavior was introduced in a change submitted 2018-02-21, but wasn’t enforced until 2021-07-22 due to a side effect.
- Detection: Identified on 2026-11-10 during incident investigation.
- Interaction with other factors: If Contributing Factor #4 were mitigated by adding expiration to ACME challenge objects, usable timestamps would have persisted on at least the unsolved challenge objects.
Contributing Factor #3: Lack of negative test coverage and automated post-issuance compliance checks for issuance using expired authorizations
- Description: GTS lacked both pre-submit negative tests and post-issuance compliance checks capable of detecting issuance using an expired authorization.
- Timeline: On 2021-08-20, CAA checks were decoupled from authorization creation. A legacy unit test covering stale CAA authorization expiration on validation was deleted without being replaced by an expiration-timestamp equivalent. The gap in negative test coverage and post-issuance self-auditing persisted until 2026-11-10, when regression unit tests were added alongside the validation fix.
- Detection: Identified during the 2026-11-10 fix development and postmortem analysis while determining how the defect persisted from 2021 to 2026 without triggering unit test failures or post-issuance self-audit alerts.
- Interaction with other factors: Negative test coverage would have exposed the missing check in Contributing Factor #1, while persisting creation timestamps (Contributing Factor #2) with a corresponding post-issuance self-audit check would have detected the first affected issuance rather than allowing the defect to remain latent for over five years.
Lessons Learned
- What went well:
- Proactive AI/agent-assisted security code review proved effective at surfacing a nuanced compliance defect in state-handling code, alongside additional defense-in-depth hardening opportunities.
- Once the defect was identified, engineers implemented, unit-tested, and submitted a fix within approximately three hours.
- GTS quickly correlated validation audit logs with unfinalized order records to identify and revoke all identified 818 unexpired affected certificates within the 24-hour Baseline Requirements deadline, and deactivated remaining valid stale authorizations immediately upon completing the rollout.
- What didn’t go well:
- Authorization database records and validation audit log entries did not preserve an immutable creation timestamp, and transitioning a pending authorization to valid overwrote its original expiration timestamp, making it impossible to identify affected authorizations created without an ACME order.
- Where we got lucky:
- Standard ACME client implementations use new orders and authorizations during issuance, rather than retaining and validating challenge URLs from expired orders, which naturally bounded the number of affected certificates over the five-year non-compliance period.
- Additional: N/A
Action Items
| Action Item | Kind | Corresponding Root Cause(s) | Evaluation Criteria | Due Date | Status |
|---|---|---|---|---|---|
| Deploy a code fix enforcing pending authorization expiration checks prior to challenge validation across both synchronous and asynchronous validation paths, and administratively deactivate remaining valid authorizations associated with stale orders. | Prevent | Contributing Factor #1, #2 | Code fix deployed and remaining stale VALID authorizations deactivated; verified by regression unit tests and post-deployment log sweep confirming zero subsequent affected issuances. | 2026-11-11 | Complete |
| Revoke all 818 identified unexpired certificates issued using challenge tokens validated more than 30 days after creation and notify affected subscribers. | Mitigate | Contributing Factor #1, #2, #3 | All 818 identified affected unexpired certificates were revoked within 24 hours and subscriber notifications delivered; publicly verifiable via CRLs, OCSP responses, and the certificate corpus disclosed in the Appendix. | 2026-11-11 | Complete |
| Audit database read and status-evaluation code paths across all ACME object types to verify that expiration timestamps (including unset legacy expiration fields) are consistently and centrally enforced before objects are used in validation or issuance workflows, and remediate any gaps found. | Prevent | Contributing Factor #1 | Internal codebase audit completed and all identified changes submitted and deployed to production. | 2027-01-14 | Ongoing |
| Expand negative unit and integration test coverage across ACME object types to verify that expired objects are rejected for validation and issuance flows. | Prevent | Contributing Factor #3 | Negative expiration test cases submitted and enforced in pre-submit continuous integration across all ACME object types. | 2027-01-14 | Ongoing |
| Persist immutable creation timestamps in audit log entries as needed, and add an automated post-issuance compliance self-audit check verifying that certificates are not issued based on domain control validation using Random Values greater than 30 days in age. | Detect | Contributing Factor #2, #3 | Creation timestamps recorded in production records and logs, and the automated post-issuance self-audit check active in production with alerting on any violation; while internal monitoring is not directly visible externally, any detected non-compliance will trigger timely public incident reporting. | 2027-03-31 | Ongoing |
Appendix
Details of the 818 affected certificates that were unexpired at discovery and revoked on 2026-11-10 are provided in the attached CSV file affected_certificates_2091860.csv, formatted in accordance with CCADB Incident Reporting Guidelines v3.2.
GTS requests that the nextUpdate field be set to 2027-01-14.
Updated•5 days ago
|
Description
•