Azure Identity SDK Remote Code Execution Vulnerability (CVE-2023-36415)
The Azure Identity client library passed a specially crafted OS-level command from a specific SDK property into the underlying command-line tool, allowing code to run on the server. An authenticated user could therefore trigger malicious code in the context of the server's account through a network call.
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 library passed a user-controllable SDK property into the underlying command-line tool without sanitising it, so the value was interpreted as an OS command.
Impact
An authenticated attacker could gain high privileges on the server, including read, write and delete functionality, through a network call.
What the attacker needed
An authenticated normal user account; 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. One of its settings was handed straight to a command-line tool without being checked, so text that should have been harmless could be run as a command on the machine. Someone with a normal login could use this to run their own commands 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.