Microsoft Defender for IoT Remote Code Execution Vulnerability (CVE-2024-21323)
A path traversal vulnerability in Microsoft Defender for IoT allowed an authenticated attacker to send a tar file that, when extracted, could overwrite arbitrary files and then install unsigned update packages. This could lead to remote code execution on the sensor.
Originally disclosed on Microsoft
FAQ
According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires the attacker to be able to send a malicious update package to the Defender for IoT sensor over the network. To do this, the attacker would first need to authenticate themselves and gain the necessary permissions to initiate the update process.
FAQ
How could an attacker exploit this vulnerability? Successful exploitation of this path traversal vulnerability would require an attacker to have user credentials on the targeted machine and then send a tar file to the Defender for IoT sensor. After the extraction process completed, the attacker could then send unsigned update packages and overwrite any file they chose.
FAQ
What actions do customers need to take to protect themselves from this vulnerability? Customers need to update their Defender for IoT software to version 24.1.3 or above. For more information, see OT monitoring software versions .
Microsoft Defender for IoT
Microsoft Defender for IoT
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the tar extraction routine did not properly validate file paths, allowing directory traversal during unpacking.
Impact
An authenticated attacker could overwrite arbitrary files and install unsigned update packages, potentially leading to remote code execution on the sensor.
What the attacker needed
Valid user credentials on the sensor; network access to the sensor
The fix
The vulnerability was fixed by updating Defender for IoT software to version 24.1.3 or above.
How it was found
- Authenticate to the Defender for IoT sensor with valid user credentials.
- Send a malicious tar file to the sensor over the network.
- Wait for the extraction process to complete, which writes files outside the intended directory.
- Send unsigned update packages to overwrite arbitrary files and achieve code execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a flaw in Microsoft Defender for IoT, a security tool for monitoring industrial devices. An attacker who already has a user account on the system could send a specially crafted archive file (a tar file) that, when unpacked, writes files outside the intended folder. That let them replace legitimate update files with their own, potentially running malicious code on the device.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.