CWE-1472 / WEAKNESS
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.
- Category
- CWE weaknesses
- Version / scope
- CWE 5.0; release 2026-10-28; publisher status Incomplete
- Affected / relevant technologies
- Not Technology-Specific / Not Language-Specific
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
Review publisher context and local applicability; this reference is not execution evidence.
Potential impact
Access Control Confidentiality Integrity Gain Privileges or Assume Identity Bypass Protection Mechanism Varies by Context The consequences vary depending on how the credential is intended for use within the product. At the least, a long expiration date gives an attacker more time to steal or guess the credential, and if compromised, the attacker would have more time than desired in order to conduct malicious activities.
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CWE 5.0. Source checked: 2026-11-26.
Source object: CWE-1472.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- Automated Dynamic Analysis If the credentials are provided through a communications protocol, monitor the communications related to credential generation and examine any expiration dates or times that are set.
- Manual Analysis Examine the code to determine where credentials are created or updated, and determine how any expiration dates or times are set.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Implementation Operation For each credential that is created, reset, or used, ensure that the expiration is set to be as short as possible while preserving usability.
- Architecture and Design Design the product to analyze the credentials that it manages, and provide mechanisms to provide secure defaults, and/or a capability to warn users about excessive expiration.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CWE-1472 → ChildOf → CWE-284 Open related reference
- CWE-1472 → ChildOf → CWE-664 Open related reference
- CWE-262 → ChildOf → CWE-1472 Open related reference
- CWE-263 → ChildOf → CWE-1472 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- https://cwe.mitre.org/data/definitions/1472.html — Publisher link; not separately HTTP-checked
- MITRE CWE 5.0 source snapshot — source accessed 2026-11-26
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
