Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Cloud Security

Dependency Confusion Could Have Led to RCE in Google Cloud Platform

Tenable shares details on a dependency confusion attack that led to the execution of code on Google’s internal servers.

Tenable has shared details on a dependency confusion attack method that could have exposed Google Cloud Platform (GCP) customers to remote code execution (RCE) attacks.

The issue, dubbed CloudImposer, could have allowed attackers to hijack an internal software dependency pre-installed on each instance of Google’s Cloud Composer pipeline-orchestration tool. GCP’s App Engine and Cloud Function services were also affected.

According to Tenable, the root cause of the issue was the use of the ‘–extra-index-url’ argument in Python, which instructs applications to look for private dependencies in the public registry (PyPI), in addition to the specified private registry.

“This behavior opens the door for attackers to carry out a dependency confusion attack: upload a malicious package with the same name as a legit package to hijack the package-installation process,” Tenable notes.

An attacker could also take advantage of other circumstances, such as the fact that ‘pip’, the Python package installer, prioritizes the package with higher versioning number when encountering two packages with the same name.

When it comes to Cloud Composer, things were not better. In fact, Tenable discovered that, when instructed to install only a specific version of a package, pip would prioritize the public registry if the –extra-index-url argument was used.

Advertisement. Scroll to continue reading.

Both Python Packaging and GCP documentation were found to recommend the use of the ‘–extra-index-url’ argument when hosting dependencies in private repositories, and the trust developers place in package management systems opened the door wide for dependency confusion.

Google itself used the argument when installing private packages on its servers and, after identifying a referenced package that was not present in the public registry, Tenable created their own package with the same name, uploaded it to a public repository, and launched the dependency confusion attack against Cloud Composer, Google’s managed service version of Apache Airflow.

After successfully verifying that the proof-of-concept (PoC) resulted in the execution of code on Google’s internal servers, Tenable reported the CloudImposer vulnerability to the internet giant, which classified it as an RCE bug and patched it immediately.

Google also updated its GCP documentation to remove the recommendation to use the –extra-index-url argument, replacing it with the –index-url argument, which only looks for packages in defined registries, thus reducing the risk of dependency confusion attacks.

Tenable also reported the identified issues to the Python Software Foundation, which said that, while a paper on mitigating the risk of dependency confusion attacks was submitted in February 2023, no implementation has been accepted or completed.

The cybersecurity firm presented its research at the BlackHat USA 2024 conference, where it explained how a vulnerability such as CloudImposer could be exploited to impact cloud interconnected services.

Just like in the Jenga game, cloud providers tend to build their services on top of each other, meaning that, if one is attacked, all other services are impacted as well, Tenable said.

Related: Google Introduces ‘Air-Gapped’ Backup Vault to Thwart Ransomware

Related: GitLab Updates Resolve Critical Pipeline Execution Vulnerability

Related: Google Introduces New Capabilities for Cloud Armor Web Security Service

Related: Google Patches Vulnerability in Cloud Endpoints Proxy

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Today’s attackers are no longer breaking in — they’re logging in. Join this live webinar as we break down the modern identity attack chain and examine how recent breaches exploited weaknesses in authentication, identity verification, and access management processes.

Register

AI has accelerated both sides of the fight. Adversaries are weaponizing vulnerabilities faster, while defenders are racing to ship detections and configurations. Join this live webinar as we explore how to prove your controls actually hold against new threats, map your security maturity, and unite breach simulation with automated pentesting into a single, coordinated program.

Register

People on the Move

SolarWinds has appointed Justin Henkel as Chief Information Security Officer.

J. Paul Haynes has joined Cinchy as Chief Executive Officer.

Hatem Naguib has become Chief Executive Officer at Sysdig.

More People On The Move

Expert Insights

Four decades of incident response experience suggest that exploits are often the symptom, not the root cause, of today’s cybersecurity failures.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.