Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Cloud Security

No Root Password for 20% of Popular Docker Containers

An analysis of 1,000 popular Docker containers revealed that nearly 20% of them have nulled root passwords, Kenna Security says. 

An analysis of 1,000 popular Docker containers revealed that nearly 20% of them have nulled root passwords, Kenna Security says. 

The investigation rooted from a recent Talos report showing that the official Alpine Linux Docker images had been shipping with this security oversight since December 2015. Alpine has already addressed the vulnerability. 

With a CVSS score of 9.8 and rated Critical, the issue was that, in the affected images, the /etc/shadow file had a blank field instead of the encrypted password, meaning that the system considered the root user as having no password.

“Due to the nature of this issue, systems deployed using affected versions of the Alpine Linux container that utilize Linux PAM, or some other mechanism that uses the system shadow file as an authentication database, may accept a NULL password for the root user,” Talos said.

Based on these findings, Jerry Gamblin, Principal Security Engineer, Kenna Security, decided to investigate whether other containers had null passwords too. 

For that, he wrote a script to check the top 1,000 docker containers from the Docker store, and discovered that roughly 20% of had null root passwords. 

Initially, the script found over 200 of these containers with nulled root passwords, but the results contained duplicate containers. A second run showed that 157 (19.75%) of 794 containers had null passwords for root. 

After some tweaks, the script revealed that, of 1,000 containers, 194 (19.4%) were in the same situation. 

Advertisement. Scroll to continue reading.

The most popular container on the list is kylemanna/openvpn, with over 10,000,000 pulls. govuk/governmentpaas, hashicorp, microsoft, monsanto, and mesosphere are also on the list.

As Gamblin points out, these containers are not necessarily vulnerable, as other conditions must also be met for exploitation. In Alpine Linux’ case, the containers were only vulnerable if the shadow and linux-pam packages were installed.

“Just because a container has no root password does not mean that it is automatically vulnerable. These findings could lead to configuration-based vulnerabilities in certain situations, as was the case with this the Alpine Linux vulnerability,” the researchers notes.

To ensure that systems remain protected, one should avoid deploying containers that allow users to authenticate as root, as this is also outside the scope of ‘best practices’, Gamblin points out. 

“All of which is to say that many people believe that containers offer more security because they extend the trend of virtualization. I’d say that this might be true, but […] there’s also a chance that containers could lead to unforeseen security concerns,” the researcher concludes. 

Related: Hard-Coded Credentials Found in Alpine Linux Docker Images

Related: Exploit Code Published for Recent Container Escape Vulnerability

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

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.

Understand how to go beyond effectively communicating new security strategies and recommendations.

Register

Join us for an in depth exploration of the critical nature of software and vendor supply chain security issues with a focus on understanding how attacks against identity infrastructure come with major cascading effects.

Register

Expert Insights

Related Content

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.

CISO Conversations

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

Cloud Security

Cloud security researcher warns that stolen Microsoft signing key was more powerful and not limited to Outlook.com and Exchange Online.

CISO Strategy

Okta is blaming the recent hack of its support system on an employee who logged into a personal Google account on a company-managed laptop.

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Application Security

Fortinet on Monday issued an emergency patch to cover a severe vulnerability in its FortiOS SSL-VPN product, warning that hackers have already exploited the...

Application Security

A CSRF vulnerability in the source control management (SCM) service Kudu could be exploited to achieve remote code execution in multiple Azure services.

Cloud Security

Microsoft and Proofpoint are warning organizations that use cloud services about a recent consent phishing attack that abused Microsoft’s ‘verified publisher’ status.