An SSL or TLS method or minimum version older than TLS 1.2 is selected
What it finds
SSLv3_method(), TLSv1_client_method() or SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION): SSL 3.0, TLS 1.0 and TLS 1.1 have known attacks and are deprecated; TLS_method() with a minimum of TLS 1.2 negotiates a safe version.
Only files that include an OpenSSL header count.
From the rule's source, outdated_tls_protocol.rs.
#include <openssl/ssl.h> SSL_CTX *make(void){ SSL_CTX *ctx = SSL_CTX_new(TLSv1_client_method());tx0 reports: TLSv1_client_method selects a protocol version older than TLS 1.2 SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);tx0 reports: TLS1_VERSION allows a protocol version older than TLS 1.2 return ctx;} Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/c:outdated-tls-protocol" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/c:outdated-tls-protocol] reason="..."tx0 explain tx0/c:outdated-tls-protocol shows the same in the terminal. Found a false positive? Report it.