ChaosDB: How to discover your vulnerable Azure Cosmos DBs and protect them
A vulnerability in Azure Cosmos DB's Jupyter Notebook feature allowed any Azure user to gain full admin access to other customers' Cosmos DB instances, including their primary keys. Attackers could read, write, and delete data without authorization.
Published on wiz.io
As described in our initial blog post on ChaosDB, the Wiz Research team found an unprecedented critical vulnerability in Azure Cosmos DB. The vulnerability gives any Azure user full admin access (read, write, delete) to another customers Cosmos DB instances without authorization.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Jupyter notebook feature allowed privilege escalation from one tenant's notebook to another's, exposing secrets like the Cosmos DB primary key.
Impact
Any Azure user could gain full admin access to other customers' Cosmos DB instances, potentially reading, writing, or deleting data, and the primary keys may have been exposed to third parties.
What the attacker needed
Azure account; Cosmos DB with Jupyter Notebook enabled; Network access to the target
The fix
Microsoft disabled the vulnerable notebook service, and customers should regenerate their primary keys and limit network access.
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 write-up has not been written yet. The Original tab links to the source.
Azure Cosmos DB is a database service. It had a feature that let users run code in a notebook. A flaw in that feature let anyone with an Azure account take control of other people's databases and steal their access keys. This meant they could read, change, or delete data.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.