LiveActive security incident?Get immediate response
CWE Reference

CWE-1472: Generation of Credential with Long Expiration | Glexia

CWE-1472 (Generation of Credential with Long Expiration) weakness overview with consequences, detection methods, mitigations, related CVEs and MITRE ATT&CK context.

Release 4.21weaknessIncomplete

Glexia's Take · Automated analysis

CWE-1472: Generation of Credential with Long Expiration

Generation of Credential with Long Expiration represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

Executive 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.

Developer Pattern

CWE-1472 is the kind of defect developers can usually prevent with explicit validation, safer framework defaults, and tests that exercise hostile input or unsafe state transitions.

Automation confidence

high confidence from CWE-1472, 4.21.

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Official CWE Definition

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.

Type
weakness
Abstraction
Base
Status
Incomplete
Source
MITRE CWE definition

Developer And Remediation Guidance

How teams prevent and detect this weakness

Causes

  • Missing validation
  • Unsafe defaults
  • Insufficient authorization or memory-safety invariant

Remediation

  • 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.

Detection

  • 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.

Mappings

Related CVEs, CWEs, and ATT&CK context

Related CWEs

Related CVEs

Related CVE mappings appear after CVE records are cross-indexed.

Open CWE CVE mapping

ATT&CK Relevance

ATT&CK relevance is shown only when reviewed or responsibly inferred.