Toutes les vulnérabilités
CRITICALInfra

CLOUD-CHAOSDB-2021

Cloud · Azure · Azure Cosmos DB

Résumé

On 25 August 2021 Wiz researchers Nir Ohfeld and Sagi Tzadik disclosed ChaosDB, a cross-tenant flaw in Azure Cosmos DB that let any customer retrieve the primary access keys, certificates and connection details of several thousand other customers' database accounts, enabling full cross-tenant read, write and delete. The chain abused the Cosmos DB built-in Jupyter Notebook feature, which had been enabled by default since February 2021. A notebook ran attacker C# code as root while Python ran unprivileged, giving container root, after which the attacker removed iptables rules to reach the WireServer (168.63.129.16) and Instance Metadata endpoints. Querying WireServer yielded roughly two dozen Microsoft certificates, including private keys for internal Cosmos DB and notebook services, which were used to authenticate to internal Service Fabric clusters, enumerate every customer's Cosmos DB instance and decrypt their stored COSMOSDB_ACCOUNT_KEY and notebook auth tokens. This was a provider-side flaw under shared responsibility that customers could not patch; it was found and reported by researchers with no evidence of exploitation in the wild.

Comment l’éviter dans votre code

  • Regenerate Cosmos DB primary and secondary keys, especially after any provider advisory.
  • Disable unused Cosmos DB features such as Jupyter Notebooks to shrink attack surface.
  • Restrict access with private endpoints and IP firewall rules; avoid public exposure.
  • Enable Microsoft Defender for Cloud and audit Cosmos DB access logs for anomalies.
  • Isolate sensitive workloads into separate subscriptions to limit blast radius.

Références

Vulnérabilités liées

Tout Infra →