Skip to content
Path traversal Advisory Intermediate CVE-2024-21323

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.

Siemens Energy Follow

Originally disclosed on Microsoft

Critical 8.8 View original

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

The original report as published on the Microsoft Security Response Center, by Siemens Energy. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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

  1. Authenticate to the Defender for IoT sensor with valid user credentials.
  2. Send a malicious tar file to the sensor over the network.
  3. Wait for the extraction process to complete, which writes files outside the intended directory.
  4. 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.

More by Siemens Energy

View all

2 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.