#VU323 Default public SSH key in VMware Photon OS OVA - CVE-2016-5332

 

#VU323 Default public SSH key in VMware Photon OS OVA - CVE-2016-5332

Published: August 18, 2016


Vulnerability identifier: #VU323
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2016-5332
CWE-ID: CWE-798
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
VMware Photon OS OVA
Software vendor:
VMware, Inc

Description

The vulnerability allows a remote attacker to gain unauthorized access to the system.

The vulnerability exists due to usage of default public SSH key in all versions of Photon OS 1.0 OVAs, downloaded before August 14, 2016. A remote attacker with the corresponding private SSH key can gain access to vulnerable system using default SSH keys.

Successful exploitation of this vulnerability will allow an attacker to gain unauthorized access to vulnerable system.


Remediation

Download a new version of Photon OS 1.0 OVA, released after August 14, 2016.

Users that have downloaded the PhotonOS 1.0 OVAs before August 14, 2016 should take either of the following procedures to ensure the security of their systems:

  • Remove the left-over public key from all Photon OS 1.0 systems built from the original PhotonOS 1.0 OVAs by executing the following command:
    • On a freshly installed Photon OS system:

rm –f /root/.ssh/authorized_keys

    • On a Photon OS system which contains user-installed ssh keys:

sed –i '/photon-jenkins/d' /root/.ssh/authorized_keys

  • Alternatively, download the new OVA and replace all existing instances with new instances built from the updated Photon OS 1.0 OVAs.

External links