Затрагивает только TLS-клиент, но не сервер, при использовании TLS 1.2 или более ранней версии либо DTLS в Erlang/OTP с 17.0 до 27.3.4.15. Исправлено в OTP 27.3.4.15.
Атакующий, находящийся на пути соединения (on-path), может завершить рукопожатие без проверки какого-либо сертификата, после чего читать и изменять весь трафик приложения в этом соединении.
Исправлено в версиях: 11.2.12.1127.3.4.15
Обходной путь: Ограничьте клиентские соединения только TLS 1.3, установив versions в ['tlsv1.3'] в опциях ssl клиента.
| ssl | с 5.3.4 → исправлено в 11.2.12.11 |
| otp | с 17.0 → исправлено в 27.3.4.15 |
Команды, использующие Erlang/OTP ssl в качестве TLS 1.2 или DTLS клиента на OTP с 17.0 до исправленных выпусков 27.3.4.15, 28.5.0.4 и 29.0.4.
Клиент принимает анонимный набор шифров, который сервер никогда не предлагал, поэтому рукопожатие завершается без проверки сертификата сервера. Атакующий, находящийся на пути соединения (on-path), может затем читать и изменять весь трафик приложения в этом соединении.
Обновитесь до OTP 27.3.4.15 или более поздней версии. Erlang рекомендует 28.5.0.4 или 29.0.4.
Оригинальный заголовок: TLS 1.2 and DTLS client accepts unoffered anonymous cipher suite, bypassing server authentication
The Erlang/OTP ssl TLS 1.2 (and earlier) and DTLS client does not verify that the cipher suite selected by the server in ServerHello was among the suites offered by the client in ClientHello. The client-side tls_handshake:hello/5 handler validates the negotiated protocol version and the downgrade sentinel but hands the server-chosen suite directly to ssl_handshake:handle_server_hello_extensions/9, which installs it without a membership check. The TLS 1.3 client path performs this check (per RFC 8446), so it is not affected. An on-path attacker between the client and the intended server can respond with a ServerHello selecting an anonymous key exchange suite such as TLS_DH_anon_* or TLS_ECDH_anon_* that the client never offered. Anonymous suites do not require the server to present a certificate, so the entire verify_peer and cacerts configuration is bypassed: the attacker completes the handshake with its own ephemeral parameters, no certificate is validated, no hostname is checked, and ssl:connect returns {ok, Socket}. All subsequent application traffic is readable and modifiable by the attacker. This issue affects OTP from OTP 17.0 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to ssl from 5.3.4 before 11.2.12.11, 11.6.0.4, and 11.7.4. Whether OTP before OTP 17.0, corresponding to ssl before 5.3.4, is affected is unknown.