CyberRota Analysis
AI-GeneratedThe Wholesale Market plugin for WordPress is vulnerable to privilege escalation, allowing authenticated users with Subscriber-level access and above to gain Administrator privileges due to inadequate validation of user roles in the ced_wholesale_request_send AJAX action. This vulnerability arises from the plugin's reliance on a nonce and user ID without properly restricting the role assignment to a predefined list. WordPress site administrators using this plugin should prioritize patching to mitigate the risk of unauthorized access and potential site compromise.
Original NVD Description
The Wholesale Market plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 2.2.2 via the ced_wholesale_request_send AJAX action. The ced_wholesale_request_send_callback() handler only verifies a nonce (which is exposed to any authenticated user through wp_localize_script on the frontend) and that the caller has a positive user ID, then calls WP_User::add_role() with the client-supplied role_required POST parameter without restricting the value to an allowlist of wholesale roles. This makes it possible for authenticated attackers, with Subscriber-level access and above, to elevate their privileges to Administrator when the site administrator has enabled the 'Assigning requested role directly' option.