Umbra Wiki weakness weakness/CWE-370
Back to wiki

CWE-370 — Missing Check for Certificate Revocation after Initial Check

provenance: imported · CWE: CWE-370

CWE-370: Missing Check for Certificate Revocation after Initial Check

MITRE CWE weakness

Kind Weakness
Abstraction Variant
Status Draft
Likelihood of exploit Medium

Description

The product does not check the revocation status of a certificate after its initial revocation check, which can cause the product to perform privileged actions even after the certificate is revoked at a later time.

If the revocation status of a certificate is not checked before each action that requires privileges, the system may be subject to a race condition. If a certificate is revoked after the initial check, all subsequent actions taken with the owner of the revoked certificate will lose all benefits guaranteed by the certificate. In fact, it is almost certain that the use of a revoked certificate indicates malicious activity.

Common consequences

  • Access Control: Gain Privileges or Assume Identity
  • Integrity: Modify Application Data
  • Confidentiality: Read Application Data

Mitigations

Architecture and Design — Ensure that certificates are checked for revoked status before each use of a protected resource. If the certificate is checked before each access of a protected resource, the delay subject to a possible race condition becomes almost negligible and significantly reduces the risk associated with this issue.

References

  • CWE page: https://cwe.mitre.org/data/definitions/370.html
  • CWE list: https://cwe.mitre.org/data/index.html