Skip to content
RCE Advisory Advanced CVE-2022-23265

Microsoft Azure Defender for IoT Password Change Command Injection Local Privilege Escalation Vulnerability

The password change mechanism in Azure Defender for IoT passed a user-supplied string into a system call without proper validation. A local attacker who could already run code as the www-data user could use this to run commands as root.

Anonymous Follow

Originally disclosed on Zero Day Initiative

Medium 4.2 View original

This vulnerability allows local attackers to escalate privileges on affected installations of Microsoft Azure Defender for IoT. An attacker must first obtain the ability to execute code as the www-data user on the target system in order 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

Likely the password change routine built a shell command from unvalidated user input, allowing command injection.

Impact

A local attacker with code execution as www-data could escalate to root and run arbitrary commands.

What the attacker needed

Code execution as www-data; local access to the target system

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.

Some programs run operating system commands on your behalf. If they build those commands from text a user controls without checking it, the user can sneak in extra commands. Here, someone who already had a small foothold on the machine as a low-privilege web user could turn that into full control as the root administrator.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.