Researchers Hack Snowflake PostgreSQL Database to Gain Full Server-Level Code Execution
Researchers used limited database privileges to gain full control of a Snowflake-managed server by chaining built-in features.
Overview
Researchers from Varonis Threat Labs demonstrated how a limited databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software account could be used to take full control of a Snowflake-managed PostgreSQL serverA computer or program on a network that stores data and responds to requests from client devices. The team started with an account that had the permission to create roles, which they used to grant themselves broad access to data and system settings. They then modified a scheduled job to run with higher privilegesThe level of authority an account or process has to change settings, read files, or run commands, allowing them to create a function that executed with the permissionsThe specific rights granted to an account or app to read, write, or run files and services of the database owner. Although Snowflake had blocked standard methods for running commands, the researchers used internal database features to access blocked file functions under different names. This allowed them to execute code on the operating systemThe core software on a computer or phone that manages hardware, files, memory, and running apps, showing how small permissions can combine into a serious risk in cloud services. Snowflake fixed the issue before the research was published, so customers using Snowflake Postgres do not need to take additional action for this finding.
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.
- 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.
- Server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- privileges
- The level of authority an account or process has to change settings, read files, or run commands. Ordinary user accounts run with limited privileges so a single mistake cannot break the operating system, whereas administrator privileges allow installing drivers and viewing all files.
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- 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.
- operating-system
- The core software on a computer or phone that manages hardware, files, memory, and running apps. Because every application relies on the operating system, a security flaw in the operating system itself affects millions of devices until users install a system update.
- command execution
- A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
- 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)
- privilege-escalation
- A flaw or trick that lets a low-level user account gain administrator control over a system. After breaking into a regular guest or employee account, an attacker uses privilege escalation to gain full system rights and disable security tools. Security+ objective 2.4 lists the term
- extension
- A small add-on program installed inside a web browser to add features like ad blocking. Because a browser extension can often read and change every web page you visit, attackers buy or hijack legitimate extensions to steal session cookies and passwords.
- configuration file
- 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.
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 GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (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: Research and reports
"Researchers Hack Snowflake PostgreSQL Database..." Found by reading the article; these exact words are in it - Who is affected: "Snowflake-managed PostgreSQL..."
Copied word for word from the article - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......chained several built-in PostgreSQL features to reach operating-system command execution, even though Snowflake had blocked..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Skill in exploiting system vulnerabilities to escalate privileges.
"Researchers chained several built-in PostgreSQL features to reach operating-system command execution..." 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