cve/2022/CVE-2022-0220.md

19 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2022-0220](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0220)
![](https://img.shields.io/static/v1?label=Product&message=WordPress%20GDPR&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%3C%201.9.27%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-116%20Improper%20Encoding%20or%20Escaping%20of%20Output&color=brighgreen)
### Description
The check_privacy_settings AJAX action of the WordPress GDPR WordPress plugin before 1.9.27, available to both unauthenticated and authenticated users, responds with JSON data without an "application/json" content-type. Since an HTML payload isn't properly escaped, it may be interpreted by a web browser led to this endpoint. Javascript code may be executed on a victim's browser. Due to v1.9.26 adding a CSRF check, the XSS is only exploitable against unauthenticated users (as they all share the same nonce)
### POC
#### Reference
- https://wpscan.com/vulnerability/a91a01b9-7e36-4280-bc50-f6cff3e66059
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates