Skip to content
vetkitChecksChangelogDocumentation

vetkit.c.tls.openssl-client-verify-none

A TLS client context is set to SSL_VERIFY_NONE, so the server certificate is not checked (man-in-the-middle).

Last updated:

Suite: Security

c, cpp

A TLS client context is set to SSL_VERIFY_NONE, so the server certificate is not checked (man-in-the-middle).

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use SSL_VERIFY_PEER, load trust anchors (SSL_CTX_set_default_verify_paths / SSL_CTX_load_verify_locations) and set the expected host with SSL_set1_host.

References

Source: packages/engine/rules/sast/c.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.