Skip to content
SQL injection Advisory Advanced CVE-2021-42311

Microsoft Defender for IoT Remote Code Execution Vulnerability (CVE-2021-42311)

Microsoft Defender for IoT contained a SQL injection vulnerability that an attacker could trigger by extracting secrets from their own machine. Successful exploitation could lead to remote code execution.

Anonymous working with Trend Micro Zero Day Initiative Follow

Originally disclosed on Microsoft

High 10.0 View original

FAQ

What version of Microsoft Defender for IoT has the update that protects from this vulnerability? Version 10.5.2 and above. What is the action required to take the update? You need to update to the latest Microsoft Defender for IoT software version. See the Update the software version section of Manage the on-premises management console . What is Microsoft Defender for IoT? Microsoft Defender for IoT is a unified security solution for identifying IoT/OT devices, vulnerabilities, and threats. It enables you to secure your entire IoT/OT environment, whether you need to protect existing IoT/OT devices or build security into new IoT innovations. See Microsoft Defender for IoT for more information.

FAQ

How could an attacker exploit the vulnerability? An attacker could extract secrets from their own machine and use it to trigger the SQL injection vulnerability.

Microsoft Defender for IoT

Microsoft Defender for IoT

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Anonymous working with Trend Micro Zero Day Initiative. 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

What the attacker needed

Access to a Defender for IoT install; ability to extract local secrets

The fix

The vulnerability was fixed in Microsoft Defender for IoT version 10.5.2 and above, and users should update to the latest software version.

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 security flaw in Microsoft Defender for IoT, a product that watches over connected devices in factories and buildings. A SQL injection happens when a program builds database commands from untrusted input, letting an attacker slip in their own commands. Here the attacker first pulls some secret values out of their own installation and uses them to reach the vulnerable database query, which could let them run their own code on the system.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by Anonymous working with Trend Micro Zero Day Initiative

View all

19 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.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.