CVE-2022-44877
Description
login/index.php in CWP (aka Control Web Panel or CentOS Web Panel) 7 before 0.9.8.1147 allows remote attackers to execute arbitrary OS commands via shell metacharacters in the login parameter.
Summary dbcve.org
CWP (Control Web Panel) 7 prior to version 0.9.8.1147 contains an unauthenticated OS command injection vulnerability in login/index.php. The 'login' parameter is passed unsanitized to a shell context, allowing a remote attacker with no credentials to inject shell metacharacters and execute arbitrary OS commands on the underlying host.
Mitigation
Upgrade CWP 7 to version 0.9.8.1147 or later. As an interim compensating control, restrict network access to the CWP login endpoint (e.g., firewall/allow-list on port 2030/2086/2087) and deploy WAF rules that block shell metacharacters in the login POST body until the patch is applied.