CentOS Web Panel Vulnerability: CVE-2021–31324: Critical Comman
The unprivileged user portal of CentOS Web Panel did not properly sanitise user input, allowing command injection. An attacker could execute arbitrary commands as root, gaining full control of the system.
CVE-2021–31324 is a vulnerability found in the unprivileged user portal of the CentOS Web Panel. This flaw is particularly concerning due to its potential to allow attackers to execute arbitrary commands as the root user, effectively granting them full control over the compromised system.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary commands as root, leading to data theft, system compromise, and malware or ransomware deployment.
What the attacker needed
CentOS Web Panel user portal exposed; no special credentials required
The fix
Access to the user portal should be restricted to trusted networks and systems monitored, though the text notes CentOS is discontinued and advises upgrading where available.
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 write-up has not been written yet. The Original tab links to the source.
This is a command injection bug: the web panel takes input from a user and passes it to the operating system without cleaning it first. An attacker can add extra system commands to that input, and because the panel runs with high privileges, those commands run 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.