(0Day) CentOS Web Panel ajax_php_pecl cha Command Injection Remote Code Execution Vulnerability
The ajax_php_pecl.php script in CentOS Web Panel passes the user-supplied cha parameter into a system call without validating it. An unauthenticated remote attacker could therefore run arbitrary commands as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of CentOS Web Panel. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The script passed the cha request parameter into a system call without validating or sanitising it, allowing command injection.
Impact
An unauthenticated attacker could execute arbitrary code with root privileges; the advisory offers no patch and recommends restricting access to trusted machines only.
What the attacker needed
Network access to the panel; no authentication needed
The fix
No patch was available at disclosure; the vendor was advised to restrict interaction with the service to trusted machines, for example with firewall rules or whitelisting.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A web panel is a control page for managing a server. One of its scripts took a value from the request and handed it to the operating system as a command, so whoever sent the request could make the server run their own commands. Because the panel runs with the highest privileges, those commands ran as the all-powerful root user.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.