Improper Certificate Validation Affecting aws-crt package, versions <1.8.2
Threat Intelligence
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 ID SNYK-JS-AWSCRT-1924999
- published 23 Nov 2021
- disclosed 23 Nov 2021
- credit Unknown
Introduced: 23 Nov 2021
CVE-2021-40830 Open this link in a new tabHow to fix?
Upgrade aws-crt
to version 1.8.2 or higher.
Overview
aws-crt is a NodeJS/browser bindings to the aws-c-* libraries
Affected versions of this package are vulnerable to Improper Certificate Validation. TLS handshakes are succeeding if the peer can be verified either from the user-supplied CA or the system’s default trust-store. Attackers with access to a host’s trust stores or are able to compromise a certificate authority already in the host's trust store (note: the attacker must also be able to spoof DNS in this case) may be able to use this issue to bypass CA pinning. An attacker could then spoof the MQTT broker, and either drop traffic and/or respond with the attacker's data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user's private keys to authenticate against the MQTT broker.