Microsoft has patched an Azure Container Instances (ACI) vulnerability that could have allowed users to access the information of other Azure customers.
The company did not provide technical details on the vulnerability but security researchers with Palo Alto Networks say attackers could have exploited the bug to execute code on other users’ containers, steal sensitive information such as crypto secrets, and even deploy crypto-mining malware.
Microsoft said it it notified customers that might have been affected, through the Service Health Notifications in the Azure Portal. Those that did not receive a notification need take no action, the company added.
“There is no indication any customer data was accessed due to this vulnerability. Out of an abundance of caution, notifications were sent to customers potentially affected by the researcher activities, advising they revoke any privileged credentials that were deployed to the platform before August 31, 2021,” Microsoft said in a statement.
All Azure customers are encouraged to rotate privileged credentials on a frequent basis, as a precautionary measure.
The issue, which is being called Azurescape, could lead to the compromise of the Kubernetes clusters hosting ACI, thus providing attackers with full control over other Azure customers’ containers, according to Palo Alto Network researchers.
While built to prevent attacks from malicious neighbor containers – cross-account or cross-tenant attacks – ACI was found to use an older runC (standard container runtime) version that was vulnerable to multiple container escape flaws.
Using a modified version of the proof-of-concept code exploiting one of those bugs — CVE-2019-5736 — the researchers were able to break out of a container and gain a root reverse shell on the underlying host. Next, they found token permissions in the kube-system namespace that allowed them to execute commands on any pod in the cluster, which they used to perform the cross-account attack.
“A malicious Azure user could have compromised the multitenant Kubernetes clusters hosting ACI. As cluster administrator, an attacker could execute commands in other customer containers, exfiltrate secrets and private images deployed to the platform, or deploy cryptominers. A sophisticated adversary would further investigate the detection mechanisms protecting ACI to try to avoid getting caught,” Palo Alto said.
Released in July 2017, ACI is a Container-as-a-Service (CaaS) built on multitenant clusters (Kubernetes and, more recently, Service Fabric Clusters), which supports deployment of containers while eliminating the need to manage the underlying infrastructure.
Two weeks ago, Microsoft addressed a similar issue in Azure Cosmos DB, where users could access other customer’s databases with full administrative rights, potentially taking full control of them.