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 src.
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
Score 4.0
Default score using CVSS 4.0 . It may change depending on the context of the src.
Base 4.0
- Attack vector: A
- Attack complexity: H
- Attack Requirements: N
- Privileges required: N
- User interaction: N
- Confidentiality (VC): L
- Integrity (VI): L
- Availability (VA): N
- Confidentiality (SC): N
- Integrity (SI): N
- Availability (SA): N
Threat 4.0
- Exploit madurity: U
Result 4.0
- Vector string: CVSS:4.0/AV:A/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U
- Score:
- CVSS-BT: 0.6
- Severity:
- CVSS-BT: Low
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
- 088.Request client certificates
- 089.Limit validity of certificates
- 090.Use valid certificates
- 091.Use internally signed certificates
- 092.Use externally signed certificates
- 093.Use consistent certificates
Fixes
Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.