CWE-322¶
Key Exchange without Entity Authentication. [Authentication-Errors, Communication-Channel-Errors, Data-Integrity-Issues, Key-Management-Errors, Improper-Access-Control]
Required inputs: IR
Demonstrative Examples
Example 1
Many systems have used Diffie-Hellman key exchange without authenticating the entities exchanging keys, allowing attackers to influence communications by redirecting or interfering with the communication path. Many people using SSL/TLS skip the authentication (often unknowingly).
Excerpts from CWE [https://cwe.mitre.org], Copyright (C) 2006-2026, the MITRE Corporation. See 9.4 3rd-Party Licenses in the documentation for full details.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
missing_verification |
TLS/SSL handshake performed without prior peer verification. |
None |
False |
Options¶
This rule shares the following common options: confidence, exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
handshake_functions¶
handshake_functions
Functions that perform (or complete) a TLS/SSL handshake.Type: list[str]
Default:
['SSL_do_handshake', 'BIO_do_handshake', 'wolfSSL_connect', 'wolfSSL_accept', 'mbedtls_ssl_handshake', 'gnutls_handshake']
verification_functions¶
verification_functions
Functions that configure certificate/peer verification for a TLS session or context.Type: list[str]
Default:
['SSL_CTX_set_verify', 'SSL_set_verify', 'wolfSSL_CTX_set_verify', 'wolfSSL_set_verify', 'mbedtls_ssl_conf_authmode', 'gnutls_certificate_set_verify_function']