Skip to content

Inadequate encryption strength

Description

The application was found enabling insecure TLS protocol versions. When enabling protocol versions for an `SSLContext`, only the following versions should be allowed: TLSv1.2, TLSv1.3, DTLSv1.2, DTLSv1.3. To mitigate potential security risks, it is strongly advised to enforce TLS 1.2 as the minimum protocol version and disallow older versions such as TLS 1.0.

Examples

Insecure Code

java
SSLContext.getInstance("TLSv1.0");

Secure Code

java
SSLContext.getInstance("TLSv1.2");

Remediation

Explicitly define a secure configuration by setting the enabled protocols to TLSv1.2, TLSv1.3, DTLSv1.2, or DTLSv1.3 when creating an SSLContext.

Rule Details

FieldValue
IDCODE-0699
CategoryCrypto
SeverityMEDIUM
CWECWE-326
ConfidenceHIGH
ImpactHIGH
LikelihoodMEDIUM
ExploitabilityEASY
Tagsinsecure protocol, TLS version
OWASPA3:2017-Sensitive Data Exposure, A02:2021-Cryptographic Failures