CWE-1469
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.