[原文]The "Allow cPanel users to reset their password via email" feature in cPanel 9.1.0 build 34 and earlier, including 8.x, allows remote attackers to execute arbitrary code via the user parameter to resetpass.
The vendor has released a fix to address this issue for customers using EDGE and CURRENT versions. The vendor has outlined that affected customers should perform the following to update their product: Perform the following as root from the shell. # /scripts/upcp This should update the cPanel and WHM package to the latest version.
A potential remote command execution vulnerability has been discovered in the cPanel Application. This issue occurs due to insufficient sanitization of externally supplied data to the script that handles resetting user passwords.
An attacker may exploit this problem by crafting a malicious URI request for the affected script; the attacker may then supply shell metacharacters and arbitrary commands as a value for the affected variable.
cPanel contains a flaw that allows a remote attacker to execute arbitrary commands. The issue is due to the "resetpass" feature not properly sanitizing the "user" variable. If an attacker supplies a specially crafted username, arbitrary commands will be executed with the privileges of the cPanel software.
Upgrade to version 9.1.0-RELEASE 35 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.