CWE-1472: Generation of Credential with Long Expiration
The product generates or relies on a credential such as a key, certificate, password, confirmation code, or token, but the credential does not expire or has an expiration that is too long, i.e., the expiration is insufficient for the intended security policy of the product.
Last updated
Overview
CWE-1472 (Generation of Credential with Long Expiration) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Common consequences
What can happen when CWE-1472 is exploited.
Gain Privileges or Assume Identity, Bypass Protection Mechanism, Varies by Context
Affects: Access Control, Confidentiality, Integrity
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-1472, grouped by where in the lifecycle they apply.