Improper Authentication Affecting s2n-tls package, versions <0.3.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-S2NTLS-7675662
  • published11 Aug 2024
  • disclosed9 Aug 2024
  • creditUnknown

Introduced: 9 Aug 2024

CVE NOT AVAILABLE CWE-287  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade s2n-tls to version 0.3.0 or higher.

Overview

s2n-tls is a crate provides ergonomic, idiomatic Rust bindings for s2n-tls. From the s2n-tls readme:

Affected versions of this package are vulnerable to Improper Authentication due to an API ordering issue. An attacker can bypass client authentication by manipulating the sequence of API calls related to authentication setup.

Note:

  1. Server applications are impacted if client authentication is enabled by calling s2n_connection_set_config() before calling s2n_connection_set_client_auth_type().

  2. Applications are not impacted if these APIs are called in the opposite order or if client authentication is enabled on the config with s2n_config_set_client_auth_type(). s2n-tls clients verifying server certificates are not impacted.

Workaround

Applications can workaround this issue by calling s2n_connection_set_config() after calling s2n_connection_set_client_auth_type(), or by enabling client authentication on the config with s2n_config_set_client_auth_type().

References

CVSS Scores

version 4.0
version 3.1