Alpine’s Docker-images were supplied with empty password of “root” user

Security researches from Cisco company disclosed data about vulnerability CVE-2019-5021 in the assemblies of Alpine distributive for Docker container isolation system.

The essence of identified problem is that for “root” user was by default set by empty password without blocking of direct entrance under “root”.

“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”, — report Cisco Talos researchers.

It is worth reminding that Alpine is used for creation of digital images in Docker project (earlier assemblies were based on Ubuntu, but later were transited on Alpine).

Problem manifested since Alpine Docker 3.3. assembly, and was caused by progressive change that was added in 2015 (till 3.3 version in “/etc/shadow was used “root:!::0:::::” line, and after cessation of “-d” flag usage the line “root:::0:::::” began to be added.

Issue was initially detected and fixed in November 2015, but in a month by mistake raised in assembly files of the experimental branch, and later was transited in final assemblies.

“After discussions with Alpine Linux, it was discovered that this issue was also reported in their Github prior to our report, but was not flagged as a security issue and thus remained unresolved until it was rediscovered and reported by Cisco”, — say researchers.

In the details of the vulnerability stated that problem manifests in the latest branch Alpine Docker 3.9. Alpine developers in March 2019 launched a patch and vulnerability does not manifest in assemblies 3.9.2, 3.8.4, 3.7.3 and 3.6.5, but preserved in older branches 3.4.x and 3.5.x, that are not currently supported.

Besides, developers argue that vector for attack is quite narrow and attack should have access to same infrastructure.

Mitigation

The root account should be explicitly disabled in Docker images built using affected versions as a base. The likelihood of exploitation of this vulnerability is environment-dependent, as successful exploitation requires that an exposed service or application utilise Linux PAM, or some other mechanism which uses the system shadow file as an authentication database.

Source: https://talosintelligence.com/

Polina Lisovskaya

I works as a marketing manager for years now and loves searching for interesting topics for you

Leave a Reply

Back to top button