The CloudStack security team was notified of a information disclosure vulnerability that exists in Apache CloudStack-4.0.0-incubating. With this vulnerability, when a user calls the createSSHKeyPair API command to create an SSH key pair to be used when authenticating to a user VM, the freshly generated SSH private key is rendered in a log file at INFO level on the CloudStack "master" server as well as being returned to the caller.
7e5072bee6a90d8b464801d5889631f4bf7ef3c7f7dd527b84682cb89915ef5d
CVE-2012-5616: Apache CloudStack information disclosure vulnerability
Severity:
Low
CVSS:
3.5, AV:L,AC,H,Au,S,C:P,I:P,A:P
Vendors:
The Apache Software Foundation
Versions Affected:
Apache CloudStack 4.0.0-incubating
Description:
The CloudStack security team was notified of a information disclosure
vulnerability that exists in Apache CloudStack-4.0.0-incubating.
With this vulnerability, when a user calls the createSSHKeyPair API
command to create an SSH key pair to be used when authenticating
to a user VM, the freshly generated SSH private key is rendered in
a log file at INFO level on the CloudStack "master" server as well
as being returned to the caller.
While remediating this issue, it was also discovered that the AddHost
API call will log the password of the added host, and DeployVM and
ResetPasswordForVM will log the password of the VM for VMs that
take support password management by CloudStack.
To leverage these vulnerabilities, a malicious user would require read
access to logs on the management server, or another location where
those logs are stored (e.g. centralized logging, backup server)
Mitigation:
On the CloudStack management server, modify /etc/cloud/management/log4j.conf
so the CONSOLE and APISERVER appender logs with a Threshold of "WARN" or higher.
We will be addressing this in the upcoming release of Apache
CloudStack 4.1.0-incubating.
Credit:
This issue was identified by Ahmad Emneina of Citrix.