* fixed CVE-2024-12276;

* reviewed using $wpdb and WPCS;
* set minimum required version to 6.2 due to using %i for $wpdb->prepare;
This commit is contained in:
Mykyta Synelnikov
2025-02-03 16:17:37 +02:00
parent 26c8aa21e1
commit 4adbe19cbe
19 changed files with 249 additions and 194 deletions
@@ -1,18 +1,22 @@
<?php if ( ! defined( 'ABSPATH' ) ) exit;
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $wpdb;
$wpdb->update( "{$wpdb->usermeta}",
$wpdb->update(
$wpdb->usermeta,
array(
'meta_value' => serialize( array() ),
'meta_value' => serialize( array() ),
),
array(
'meta_key' => 'um_account_secure_fields',
'meta_key' => 'um_account_secure_fields',
),
array(
'%s'
'%s',
),
array(
'%s'
'%s',
)
);
);