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

Microsoft Azure Defender for IoT sync Endpoint SQL Injection Authentication Bypass Vulnerability

The sync endpoint of Microsoft Azure Defender for IoT fails to properly validate user-supplied input before using it in SQL queries, allowing an unauthenticated attacker to bypass authentication and execute arbitrary code as root.

Anonymous Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

This vulnerability allows remote attackers to bypass authentication on affected installations of Microsoft Azure Defender for IoT. Authentication is not required to exploit this vulnerability.

Anonymous, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

Impact

An unauthenticated attacker could bypass authentication and execute arbitrary code as root on the affected system.

What the attacker needed

Network access to the sync endpoint; no authentication required

The fix

Microsoft issued an update to correct this vulnerability.

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 SQL injection bug in a security product. The login or sync feature takes text from the user and puts it directly into a database command without checking it, so an attacker can trick the database into running their own commands. That lets them skip logging in and run code on the server with the highest privileges.

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

View all

2,270 more disclosed reports, best first.

More from Zero Day Initiative

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.