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