Researchers found a new critical remote code execution (RCE) flaw impacting multiple services related to Microsoft Azure.
Researchers from Ermetic found a remote code execution flaw, dubbed EmojiDeploy, that impacts Microsoft Azure services and other cloud services including Function Apps, App Service and Logic Apps.
The issue is achieved throughĀ CSRF (Cross-site request forgery)Ā on the ubiquitous SCM service Kudu.
Kudu is the engine behind a number of features inĀ Azure App ServiceĀ related to source control based deployment, and other deployment methods like Dropbox and OneDrive sync.
An attacker can exploit the flaw to deploy malicious zip archives containing a payload to the victimās Azure application.
The EmojiDeploy flaw can allow attackers to gain remote code execution and a full takeover of the targeted application. The issue can be exploited to execute command as www users, steal sensitive data, conduct phishing attacks and perform lateral movement to other Azure services.
āThe vulnerability enables RCE and full takeover of the target app. The impact of the vulnerability on the organization as a whole depends on the permissions of the applications managed identity.ā reads the post published by Ermetic. āEffectively applying the principle of least privilege can significantly limit the blast radius.ā
Attackers can exploit the CSRF vulnerability in the Kudu SCM panel to perform cross-origin attacksĀ by issuing a specially crafted request to the ā/api/zipdeployā endpoint. The request contains the malicious zip file encoded as a body and set the Content-Type header to text/plain.
The request is flagged as āstandardā by the browser and is accepted, allowing to deliver the malicious archive (i.e. ASPX webshell) and gaining remote access.
āThe victim navigates to your payload on your hosted domain with the origin regex bypass ā https://victim.scm.azurewebsites.net._.ermetic-research.com./ā states the report. āAccess the webshell and run code on the victim.ā
Below is the timeline for this issue:
October 26, 2022 ā The Ermetic research team reports the vulnerability to MSRC
November 2, 2022 ā MSRC first response, under review
November 3, 2022 ā Microsoft bounty program awards a $30,000 bounty
December 6, 2022 ā Microsoft releases a global fix
January 19, 2023 ā Ermeticās public disclosure
Follow me on Twitter: @securityaffairs and Facebook and Mastodon
| [adrotate banner=ā9ā³] | [adrotate banner=ā12ā³] |
(SecurityAffairsĀ ā hacking, Microsoft Azure)
[adrotate banner=ā5ā³]
[adrotate banner=ā13ā³]
The post Critical Microsoft Azure RCE flaw impacted multiple services appeared first on Security Affairs.

