YLChen-007 opened a new issue, #11989: URL: https://github.com/apache/cloudstack/issues/11989
## **Description:** ### Summary The `UpdateHostPasswordCommand` execution path logs the complete command line containing plaintext passwords at DEBUG level. The password is concatenated into a shell command string and logged before execution, exposing both old and new host credentials to anyone with log access. ### Severity **Critical** - Direct exposure of host administrator passwords in logs enables unauthorized host access and complete infrastructure compromise. --- ## **Vulnerability Details** ### Issue Description #### Vulnerable Code Flow **Step 1: Command Line Construction** buildCommandLine implementation. https://github.com/apache/cloudstack/blob/dbda673e1fa813856deb0f0b6328dad0222b702c/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/wrapper/xenbase/XenServerUtilitiesHelper.java#L40-L45 **Step 2: Password Logged at DEBUG Level** (Line 48) invoke buildCommandLine method (Line 44) to construct cmd, then log out at Line 48 https://github.com/apache/cloudstack/blob/dbda673e1fa813856deb0f0b6328dad0222b702c/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/wrapper/xenbase/CitrixUpdateHostPasswordCommandWrapper.java#L38-L57 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
