Skip to content
SQL injection Advisory Intermediate CVE-2021-42313

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

An unsanitised parameter was passed into a SQL query, allowing SQL injection. An attacker could exploit this to execute arbitrary code remotely.

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

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 use the unsanitized parameter into a SQL query to trigger SQL Injection.

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

None

The fix

The vulnerability was fixed in version 10.5.2 and above; 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.

A SQL injection is when user input is inserted directly into a database command without cleaning, so an attacker can change the command. Here, a parameter was not sanitised, letting an attacker run their own database queries. The report says this could lead to remote code execution, meaning running code on the server.

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.