CWE-1469

Base Abstraction Level
Pillar — Highest-level weakness category
Class — Abstract, language-independent
Base — Specific enough to detect
Variant — Tied to specific technology
Compound — Requires multiple weaknesses
Incomplete MITRE CWE Status
Stable — Fully reviewed and complete
Draft — Under development, may change
Incomplete — Partially defined by MITRE
Deprecated — No longer recommended
Obsolete — Replaced by another CWE
Improper Check for Credential Expiration

Description

The product receives a request that includes a credential such as a key, certificate, password, confirmation code, or token, but the product does not check whether the credential is expired.

Consequences

Access Control, Confidentiality, Integrity — Gain Privileges or Assume Identity, Bypass Protection Mechanism

Mitigations

Phase: Implementation

When receiving a credential, look up its expiration to ensure that the credential is still active. If the incoming credential states its own expiration, do not trust this value as it may be part of untrusted input.

Phase: Architecture and Design

Ensure that, for any flow that generates or resets credentials, the expiration is clearly recorded for the credential. Also, ensure that mechanisms exist (such as error handling) for implementations to easily check for expiration, or build in the expiration check as part of the design.