Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-40831— Missing SNI validation and inconsistent CA override function behavior within AWS IoT Device SDKs on Apple devices

Quick assessment

Affected
Amazon Web Services AWS IoT Device SDK v2 for Java
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Amazon AWS IoT Device SDK是美国亚马逊(Amazon)公司的 MIT 开源许可下的 C 源文件集合,可用于嵌入式应用程序以将 IoT 设备安全地连接到 AWS IoT Core。它包括一个 MQTT、JSON 解析器和 AWS IoT Device Shadow 库。它以源代码形式分发,旨在与应用程序代码、其他库以及可选的 RTOS(实时操作系统)一起构建到客户固件中。 Amazon AWS IoT Device SDK v2存在信任管理问题漏洞,攻击者可利用该漏洞通过欺骗DNS,

CVSS 6.3 · Medium EPSS 0.64% · P49
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-40831

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Missing SNI validation and inconsistent CA override function behavior within AWS IoT Device SDKs on Apple devices
Source: CVE Program / CVE List V5
Vulnerability Description
The AWS IoT Device SDK v2 for Java, Python, C++ and Node.js appends a user supplied Certificate Authority (CA) to the root CAs instead of overriding it on macOS systems. Additionally, SNI validation is also not enabled when the CA has been “overridden”. TLS handshakes will thus succeed 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. The 'aws_tls_ctx_options_override_default_trust_store_*' function within the aws-c-io submodule has been updated to address this behavior. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.5.0 on macOS. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.7.0 on macOS. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.14.0 on macOS. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.6.0 on macOS. Amazon Web Services AWS-C-IO 0.10.7 on macOS.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Amazon AWS IoT Device SDK 信任管理问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Amazon AWS IoT Device SDK是美国亚马逊(Amazon)公司的 MIT 开源许可下的 C 源文件集合,可用于嵌入式应用程序以将 IoT 设备安全地连接到 AWS IoT Core。它包括一个 MQTT、JSON 解析器和 AWS IoT Device Shadow 库。它以源代码形式分发,旨在与应用程序代码、其他库以及可选的 RTOS(实时操作系统)一起构建到客户固件中。 Amazon AWS IoT Device SDK v2存在信任管理问题漏洞,攻击者可利用该漏洞通过欺骗DNS,
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Amazon Web Services AWS IoT Device SDK v2 for Java unspecified ~ 1.5.0 -
Amazon Web Services AWS IoT Device SDK v2 for Python unspecified ~ 1.7.0 -
Amazon Web Services AWS IoT Device SDK v2 for C++ unspecified ~ 1.14.0 -
Amazon Web Services AWS IoT Device SDK v2 for Node.js unspecified ~ 1.6.0 -
Amazon Web Services AWS-C-IO 0.10.7 -

II. Public POCs for CVE-2021-40831

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-40831

请登录查看更多情报信息。

Other References for CVE-2021-40831 (5)

Same Patch Batch · Amazon Web Services · 2021-11-22 · 4 CVEs total

CVE-2021-40828 6.3 MEDIUM TLS hostname validation issues within AWS IoT Device SDKs on Windows
CVE-2021-40829 6.3 MEDIUM TLS hostname validation issues within AWS IoT Device SDKs on macOS
CVE-2021-40830 6.3 MEDIUM Inconsistent CA override function behavior within AWS IoT Device SDKs on Unix systems

IV. Related Vulnerabilities

V. Comments for CVE-2021-40831

No comments yet


Leave a comment