Description
Allowing SSLv2, SSLv3, TLS 1.0 or TLS 1.1 leaves obsolete protocols available for negotiation.
Potential impact
A connection that negotiates an obsolete version can be more vulnerable to interception or tampering.
Remediation
Require TLS 1.2 or later and replace methods that select a single obsolete version.
Examples
Use the context only if SSL_CTX_new returns a valid context and SSL_CTX_set_min_proto_version succeeds.
Before
c
SSL_CTX *ctx = SSL_CTX_new(TLSv1_method());
After
c
SSL_CTX *ctx = SSL_CTX_new(TLS_method());
SSL_CTX_set_min_proto_version(ctx, TLS1_2_VERSION);
TLSv1_method() selects only TLS 1.0. Using TLS_method() with TLS1_2_VERSION allows supported versions from TLS 1.2 upward.