Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Cloud Security

Serious Path Traversal Flaw Found in Kubernetes

A potentially serious vulnerability that can be exploited for path traversal and arbitrary code execution has been found in Kubernetes, the popular open source container orchestration system.

A potentially serious vulnerability that can be exploited for path traversal and arbitrary code execution has been found in Kubernetes, the popular open source container orchestration system.

Last year, developers of Kubernetes and OpenShift, a Red Hat-made container application platform that uses Kubernetes, patched a directory traversal vulnerability (CVE-2018-1002100) that could have been exploited to write arbitrary files to arbitrary paths on the system using malicious containers.

Researchers at container security firm Twistlock discovered that the fix was incomplete and demonstrated that attacks were still possible. A new CVE identifier has been assigned, CVE-2019-1002101, and Kubernetes developers released versions 1.11.9, 1.12.7, 1.13.5, and 1.14.0 to address the problem, which they have classified as “high severity.”

Both the new and the old flaws are related to Kubectl, a command-line interface for running commands against Kubernetes clusters. Specifically, the issue involves the cp command, which is used to copy files between a container and the user’s machine. During this copying process, a tar is created inside the container, it’s copied over the network, and then it’s unpacked by kubectl on the user’s device.

However, if an attacker can plant a malicious tar binary inside the container, they could exploit these flaws to write arbitrary files to any location on the system when the Kubectl cp command is used.

Twistlock researchers explained that an attacker can exploit this directory traversal to steal potentially sensitive information from the devices of Kubectl users, which are typically developers, administrators or members of DevOps teams.

It may also be possible to execute arbitrary code on the system, but that depends on the level of permissions Kubectl has. If it runs as root, an attacker could easily modify one of the configuration or system files that are executed when the system boots up.

Since Kubectl is more often run with user privileges, achieving code execution may not be as easy. However, Twistlock experts have described a simple attack method that could work in many scenarios.

Advertisement. Scroll to continue reading.

“This vulnerability can be dangerous in one of two scenarios: 1) A user unknowingly downloads a malicious container image with a bad tar. The attacker can push such an image to any registry (e.g. Docker Hub) for a popular image he has control of or rely on typosquatting. 2) An attacker compromises a running container by exploiting another vulnerability or in some cases he may have legitimate access to a container. The attacker then plants a malicious tar replacing the original tar of the image,” said Twistlock researcher Ariel Zelivansky.

“A sophisticated attacker will also conceal the exploit by making the malicious tar include the originally requested files in its output, or make the symlink file a dotfile, so that the attack is not immediately apparent,” Zelivansky added.

Amazon Web Services (AWS) has also released a security bulletin for this and another, less severe vulnerability found recently in Kubernetes.

Related: Critical Privilege Escalation Flaw Patched in Kubernetes

Related: Misconfiguration a Top Security Concern for Containers

Related: Researchers Find 21,000 Exposed Container Orchestration Systems

Written By

Eduard Kovacs (@EduardKovacs) is a managing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

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.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

People on the Move

Mike Dube has joined cloud security company Aqua Security as CRO.

Cody Barrow has been appointed as CEO of threat intelligence company EclecticIQ.

Shay Mowlem has been named CMO of runtime and application security company Contrast Security.

More People On The Move

Expert Insights

Related Content

Vulnerabilities

Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Application Security

Cycode, a startup that provides solutions for protecting software source code, emerged from stealth mode on Tuesday with $4.6 million in seed funding.

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...

IoT Security

A group of seven security researchers have discovered numerous vulnerabilities in vehicles from 16 car makers, including bugs that allowed them to control car...

Vulnerabilities

A researcher at IOActive discovered that home security systems from SimpliSafe are plagued by a vulnerability that allows tech savvy burglars to remotely disable...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...

CISO Conversations

SecurityWeek talks to Billy Spears, CISO at Teradata (a multi-cloud analytics provider), and Lea Kissner, CISO at cloud security firm Lacework.

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.