You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AJAX function set_bynder_featured_image has two big security flaws:
it is callable as unauthenticated user. Anybody can upload/sideload anything into the WordPress media library (remove add_action( 'wp_ajax_nopriv_bynder_featured', 'set_bynder_featured_image' ); – that is not necessary for your plugin)
The AJAX function
set_bynder_featured_image
has two big security flaws:add_action( 'wp_ajax_nopriv_bynder_featured', 'set_bynder_featured_image' );
– that is not necessary for your plugin)upload_files
capability) and can set the featured image of any post (no check ofedit_post_meta
meta capability)You should also add a nonce and a nonce check in this function to prevent CSRF attacks.
The text was updated successfully, but these errors were encountered: