wordpress-oauth-server icon indicating copy to clipboard operation
wordpress-oauth-server copied to clipboard

Line ~77 of /includes/profile.php on

Open mrwpress opened this issue 4 years ago • 0 comments

This query should be reworked to:

$query = "DELETE FROM {$wpdb->prefix}oauth_access_tokens WHERE user_id = %d AND ap_generated = %d"; $query = $wpdb->prepare( $query, $user_id, 1 ); $wpdb->query( $query );

It is VERY important to use the prepare() method. I am not going to put further reviews about it. You should check the plugin throughout and refactor.

mrwpress avatar Mar 13 '22 15:03 mrwpress