Azure Identity SDK Remote Code Execution Vulnerability (CVE-2023-36414)
Certain credential types in the Azure Identity client library passed a caller-supplied value into an underlying command-line tool without proper handling. An authenticated attacker could supply a specially crafted operating-system command through a specific SDK property and achieve remote code execution on the server.
Originally disclosed on Microsoft
FAQ
According to the CVSS metrics, successful exploitation of this vulnerability could lead to major loss of confidentiality (C:H), integrity (I:H), and availability (A:H). What does that mean for this vulnerability? An attacker who successfully exploited this vulnerability could gain high privileges, which include read, write, and delete functionality.
FAQ
According to the CVSS metric, the attack vector is network (AV:N), and privilege required is low (PR:L). What is the target used in the context of the remote code execution? The attacker for this vulnerability could target the server accounts in an arbitrary or remote code execution. As an authenticated user, the attacker could attempt to trigger malicious code in the context of the server's account through a network call. The privilege requirement is low because the attacker needs to be authenticated as a normal user.
FAQ
How could an attacker exploit this vulnerability? An attacker could exploit this vulnerability by passing a specially crafted OS-level command to a specific SDK property which is passed to the underlying CLI and results in remote code execution.
FAQ
Which credential types provided by the Azure Identity client library are affected? The vulnerability exists in the following credential types: DefaultAzureCredential AzureCliCredential AzureDeveloperCliCredential AzurePowerShellCredential
Azure SDK
Azure SDK
Microsoft
Microsoft
Customer Action Required
Yes
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 affected credential types passed a user-controllable property into an underlying CLI invocation without sanitising it, allowing command injection.
Impact
An authenticated user could gain high privileges with read, write and delete capability, and could trigger malicious code in the context of the server's account.
What the attacker needed
Authenticated as a normal user; network access to the target
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.
The Azure Identity library is a helper that lets programs log in to Microsoft's cloud. Some of its login helpers hand a value straight to a command-line tool running on the machine. If that value is really a command rather than plain data, the tool may run it, letting someone who is already logged in run their own code on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.