PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/admin/class-privacy.php +3 -5 1.6.271.6.1 View file →
@@ -209,9 +209,10 @@
209 209 */
210 210 public static function get_form_payments( $user_id ) {
211 211 global $wpdb;
212 212
213 - $query = $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'weforms_payments WHERE user_id = %d', $user_id );
213 + $query = 'SELECT * FROM ' . $wpdb->prefix . 'weforms_payments' .
214 + ' WHERE user_id = ' . $user_id;
214 215
215 216 $results = $wpdb->get_results( $query );
216 217
217 218 return $results;
@@ -217,12 +218,9 @@
217 218 return $results;
218 219 }
219 220
220 221 public static function process_payment_data( $payment_data ) {
221 - // Security fix: Prevent PHP Object Injection by restricting allowed classes
222 - $field_value = is_serialized( $payment_data->payment_data )
223 - ? @unserialize( $payment_data->payment_data, [ 'allowed_classes' => false ] )
224 - : $payment_data->payment_data;
222 + $field_value = unserialize( $payment_data->payment_data );
225 223
226 224 $serialized_value = [];
227 225 $transaction_data = [];
228 226