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

Microsoft Azure Defender for IoT maintenanceWindow Endpoint SQL Injection Privilege Escalation Vulnerability

The maintenanceWindow endpoint in Microsoft Azure Defender for IoT failed to validate a user-supplied string before using it to build SQL queries. An authenticated remote attacker could exploit this to escalate privileges to resources normally protected from the user.

Anonymous Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to escalate privileges on affected installations of Microsoft Azure Defender for IoT. Authentication is 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

Root cause

The endpoint built SQL queries from user-supplied input without validating or safely parameterising it.

Impact

An authenticated attacker could escalate privileges to resources normally protected from the user; the text does not say whether the vendor's update fully blocked exploitation in practice.

What the attacker needed

Authentication to the product; network access to the endpoint

The fix

Microsoft issued an update to correct the 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.

SQL is the language databases use to store and fetch data. If a program pastes text from a user straight into a database command without checking it, the user can sneak in extra commands. Here an attacker who already has a login could use that trick to reach data or actions their account should not allow.

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.