Critical Azure Cosmos DB flaw threatened cross-tenant database takeover
A flaw in a database service allowed attackers to escape a query sandbox and access any customer's data, including Microsoft's own services.
Overview
A security firm named Wiz found a serious weakness in Microsoft Azure's Cosmos DB databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software service. This flaw allowed attackers to break out of a restricted area called the Gremlin query sandboxAn isolated test environment where a program can run without touching the rest of the computer and run code on shared infrastructure. By doing this, they could steal a platform-wide credential known as the Cosmos Master KeyThe secret value that locks or opens a message. This key gave access to any customer's database, including data used by Microsoft services like Entra ID, Teams, and Copilot. The vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend worked across different tenantsOne organization's dedicated, isolated slice of accounts and data inside a shared cloud service, regions, and APIA structured interface that lets one software program request data or actions from another program types such as SQLThe standard query language used to read, add, update, and delete records in relational databases, MongoDB, and Cassandra. Microsoft fixed the issue by redesigning the platform before the flaw could be widely exploited.
Terms in this story
- database
- An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
- sandbox
- An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
- Key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- tenant
- One organization's dedicated, isolated slice of accounts and data inside a shared cloud service. Even though many companies share the same cloud provider's hardware, each company manages its own users, policies, and storage inside its own cloud tenant.
- API
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
- SQL
- The standard query language used to read, add, update, and delete records in relational databases. Almost every banking, retail, and hospital system stores its records in a database controlled by SQL, which is why SQL injection bugs that alter those queries are so dangerous.
- endpoints
- Any user device or server, such as a laptop, phone, or workstation, connected to a network. Security teams install monitoring tools on every company endpoint because a single employee laptop infected at home can carry malware onto the corporate network.
- arbitrary code execution
- A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- configuration
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- exploit chain
- Two or more separate vulnerabilities linked together in sequence to break through multiple layers of defense. A single bug in a browser tab might not be enough on its own, so an attacker combines a browser bug with a second kernel bug in an exploit chain to escape the sandbox.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the CSO Online website. Cite the article, not this page.
Read the full article on CSO Online (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"...critical vulnerability in microsoft azures cosmos db database service..." Found by reading the article; these exact words are in it - Who is affected: "...any customers database including data stores used by microsoft services..." Retail and consumer businesses
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"Critical Azure Cosmos DB flaw threatened cross-tenant database takeover..." Found in the headline - Security+ 3.1 Compare and contrast security implications of different architecture models.
"......and Copilot, according to research published by cloud security firm Wiz. The vulnerability, dubbed..." Found in the opening sentences - Security+ 4.1 Given a scenario, apply common security techniques to computing resources.
"......attackers to escape the platform's Gremlin query sandbox, execute code on shared infrastructure, and..." Found in the opening sentences - Security+ 4.3 Explain various activities associated with vulnerability management.
"A critical vulnerability in Microsoft Azure's Cosmos DB database service..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......stores used by Microsoft services such as Entra ID, Teams, and Copilot, according to research..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"A critical vulnerability in Microsoft Azure's Cosmos DB database service..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......services such as Entra ID, Teams, and Copilot, according to research published by cloud..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of emerging security issues, risks, and vulnerabilities.
"Critical Azure Cosmos DB flaw threatened cross-tenant database takeover..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role