Skip to main content

Insecure digital certificates - Lifespan

Description

The certificates are valid for more than two years.

Impact

Increase the chances of the certificate being susceptible to zero-day vulnerabilities.

Recommendation

Generate a certificate that complies with recommended best practices.

Threat

Anonymous attacker from an adjacent network.

Expected Remediation Time

⌚ 15 minutes.

Score

Default score using CVSS 3.1. It may change depending on the context of the vulnerability.

Base

  • Attack vector: A
  • Attack complexity: H
  • Privileges required: N
  • User interaction: N
  • Scope: U
  • Confidentiality: L
  • Integrity: L
  • Availability: N

Temporal

  • Exploit code madurity: U
  • Remediation level: O
  • Report confidence: X

Result

  • Vector string: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N/E:U/RL:O/RC:X
  • Score:
    • Base: 4.2
    • Temporal: 3.7
  • Severity:
    • Base: Medium
    • Temporal: Low

Code Examples

Compliant code

The application sets a secure expiration time for digital certificates

resource {
certificate-id {
ca-profile: "ca-profile-name";
challenge-password: {secretpassword};
re-generate-keypair: mykey;
validity-period: 365;
}
}

Non compliant code

The application does not define a secure limit for expiration of certificates

resource {
certificate-id {
ca-profile: "ca-profile-name";
challenge-password: "password";
re-generate-keypair: mykey;
validity-period: 3000;
}
}

Requirements