Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/redux-framework/redux-core/framework.php
+++ b/redux-framework/redux-core/framework.php
@@ -33,7 +33,7 @@
require_once __DIR__ . '/class-redux-core.php';
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals -- Variable is inside a prefixed class.
-Redux_Core::$version = '4.5.17';
+Redux_Core::$version = '4.5.18';
Redux_Core::$redux_path = __DIR__;
Redux_Core::instance();
--- a/redux-framework/redux-core/inc/extensions/color_scheme/class-redux-extension-color-scheme.php
+++ b/redux-framework/redux-core/inc/extensions/color_scheme/class-redux-extension-color-scheme.php
@@ -6,7 +6,7 @@
* @author Kevin Provance <kevin.provance@gmail.com>
* @class Redux_Extension_Color_Scheme
*
- * @version 4.5.10
+ * @version 4.5.18
*
* @noinspection PhpIgnoredClassAliasDeclaration
*/
@@ -26,7 +26,7 @@
*
* @var string
*/
- public static $version = '4.5.10';
+ public static $version = '4.5.18';
/**
* Extension friendly name.
@@ -569,7 +569,7 @@
// Set header info.
header( 'Content-Description: File Transfer' );
header( 'Content-type: application/txt' );
- header( 'Content-Disposition: attachment; filename="redux_schemes_' . $this->parent->args['opt_name'] . '_' . $this->field_id . '_' . gmdate( 'm-d-Y' ) . '.json"' );
+ header( 'Content-Disposition: attachment; filename="redux_schemes_' . $this->parent->args['opt_name'] . '_' . $this->field_id . '_' . gmdate( 'm-d-Y-H-i' ) . '.json"' );
header( 'Content-Transfer-Encoding: binary' );
header( 'Expires: 0' );
header( 'Cache-Control: must-revalidate' );
--- a/redux-framework/redux-core/inc/extensions/custom_fonts/class-redux-extension-custom-fonts.php
+++ b/redux-framework/redux-core/inc/extensions/custom_fonts/class-redux-extension-custom-fonts.php
@@ -5,7 +5,7 @@
* @package Redux
* @author Kevin Provance <kevin.provance@gmail.com> & Dovy Paukstys <dovy@reduxframework.com>
* @class Redux_Extension_Custom_Fonts
- * @version 4.5.10
+ * @version 4.5.18
*
* @noinspection PhpHierarchyChecksInspection
* @noinspection PhpDocFinalChecksInspection
@@ -26,7 +26,7 @@
*
* @var string
*/
- public static $version = '4.5.10';
+ public static $version = '4.5.18';
/**
* Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/customizer/class-redux-extension-customizer.php
+++ b/redux-framework/redux-core/inc/extensions/customizer/class-redux-extension-customizer.php
@@ -5,7 +5,7 @@
*
* @package ReduxFramework/Extentions
* @class Redux_Extension_Customizer
- * @version 4.5.1
+ * @version 4.5.18
* @noinspection PhpIgnoredClassAliasDeclaration
*/
@@ -26,7 +26,7 @@
*
* @var string
*/
- public static $version = '4.5.1';
+ public static $version = '4.5.18';
/**
* Set the name of the field. Ideally, this will also be your extension's name.
--- a/redux-framework/redux-core/inc/extensions/icon_select/class-redux-extension-icon-select.php
+++ b/redux-framework/redux-core/inc/extensions/icon_select/class-redux-extension-icon-select.php
@@ -5,7 +5,7 @@
* @package Redux Extentions
* @author Dovy Paukstys <dovy@reduxframework.com> & Kevin Provance <kevin.provance@gmail.com>
* @class Redux_Extension_Icon_Select
- * @version 4.4.2
+ * @version 4.5.18
*
* @noinspection PhpIgnoredClassAliasDeclaration
*/
@@ -28,7 +28,7 @@
*
* @var string
*/
- public static $version = '4.4.2';
+ public static $version = '4.5.18';
/**
* Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/import_export/class-redux-extension-import-export.php
+++ b/redux-framework/redux-core/inc/extensions/import_export/class-redux-extension-import-export.php
@@ -3,7 +3,7 @@
* Redux Import/Export Extension Class
*
* @class Redux_Extension_Import_Export
- * @version 4.5.10
+ * @version 4.5.18
* @package Redux Framework
*
* @noinspection PhpIgnoredClassAliasDeclaration
@@ -26,7 +26,7 @@
*
* @var string
*/
- public static $version = '4.5.10';
+ public static $version = '4.5.18';
/**
* Is field bit.
@@ -126,7 +126,7 @@
if ( isset( $_GET['action'] ) && 'redux_download_options-' . $this->parent->args['opt_name'] === $_GET['action'] ) { // phpcs:ignore WordPress.Security.NonceVerification
header( 'Content-Description: File Transfer' );
header( 'Content-type: application/txt' );
- header( 'Content-Disposition: attachment; filename="redux_options_"' . $this->parent->args['opt_name'] . '_backup_' . gmdate( 'm-d-Y' ) . '.json"' );
+ header( 'Content-Disposition: attachment; filename="redux_options_' . $this->parent->args['opt_name'] . '_backup_' . gmdate( 'm-d-Y-H-i' ) . '.json"' );
header( 'Content-Transfer-Encoding: binary' );
header( 'Expires: 0' );
header( 'Cache-Control: must-revalidate' );
--- a/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php
+++ b/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php
@@ -6,7 +6,7 @@
* @author Dovy Paukstys <dovy@reduxframework.com> & Kevin Provance <kevin.provance@gmail.com>
* @class Redux_Extension_Metaboxes
*
- * @version 4.2.0
+ * @version 4.5.18
*/
defined( 'ABSPATH' ) || exit;
@@ -26,7 +26,7 @@
*
* @var string
*/
- public static $version = '4.2.0';
+ public static $version = '4.5.18';
/**
* Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/multi_media/class-redux-extension-multi-media.php
+++ b/redux-framework/redux-core/inc/extensions/multi_media/class-redux-extension-multi-media.php
@@ -6,7 +6,7 @@
* @author Kevin Provance <kevin.provance@gmail.com>
* @class Redux_Extension_Multi_Media
*
- * @version 4.4.1
+ * @version 4.5.18
*/
defined( 'ABSPATH' ) || exit;
@@ -26,7 +26,7 @@
*
* @var string
*/
- public static $version = '4.4.1';
+ public static $version = '4.5.18';
/**
* Extension name.
--- a/redux-framework/redux-core/inc/extensions/taxonomy/class-redux-extension-taxonomy.php
+++ b/redux-framework/redux-core/inc/extensions/taxonomy/class-redux-extension-taxonomy.php
@@ -5,7 +5,7 @@
* @package Redux
* @author Dovy Paukstys
* @class Redux_Extension_Taxonomy
- * @version 4.4.6
+ * @version 4.5.18
* @noinspection PhpIgnoredClassAliasDeclaration
*/
@@ -26,7 +26,7 @@
*
* @var string
*/
- public static $version = '4.4.19';
+ public static $version = '4.5.18';
/**
* Extension friendly name.
--- a/redux-framework/redux-core/inc/extensions/users/class-redux-extension-users.php
+++ b/redux-framework/redux-core/inc/extensions/users/class-redux-extension-users.php
@@ -5,7 +5,7 @@
* @package Redux
* @author Dovy Paukstys
* @class Redux_Extension_Users
- * @version 4.5.6
+ * @version 4.5.18
*/
defined( 'ABSPATH' ) || exit;
@@ -25,7 +25,7 @@
*
* @var string
*/
- public static $version = '4.5.6';
+ public static $version = '4.5.18';
/**
* Extension friendly name.
@@ -481,7 +481,7 @@
$this->parent->args['disable_save_warn'] = true;
}
- $this->parent->transients = get_transient( $this->parent->args['opt_name'] . '-transients-users' );
+ $this->parent->transients = get_transient( $this->parent->args['opt_name'] . '-transients-users-' . get_current_user_id() );
$this->parent->transients_check = $this->parent->transients;
if ( isset( $this->parent->transients['notices'] ) ) {
@@ -489,7 +489,7 @@
$this->parent->transients['last_save_mode'] = 'users';
}
- delete_transient( $this->parent->args['opt_name'] . '-transients-users' );
+ delete_transient( $this->parent->args['opt_name'] . '-transients-users-' . get_current_user_id() );
$this->parent->enqueue_class->init();
@@ -1019,7 +1019,7 @@
if ( isset( $update_transients ) ) {
$this->parent->transients['notices']['override'] = 1;
- set_transient( $this->parent->args['opt_name'] . '-transients-users', $this->parent->transients );
+ set_transient( $this->parent->args['opt_name'] . '-transients-users-' . get_current_user_id(), $this->parent->transients, DAY_IN_SECONDS );
}
}
--- a/redux-framework/redux-core/inc/extensions/widget_areas/class-redux-extension-widget-areas.php
+++ b/redux-framework/redux-core/inc/extensions/widget_areas/class-redux-extension-widget-areas.php
@@ -5,7 +5,7 @@
* @package Redux
* @author Dovy Paukstys (dovy)
* @class Redux_Extension_Widget_Areas
- * @version 4.3.20
+ * @version 4.5.18
*
* @noinspection PhpIgnoredClassAliasDeclaration
*/
@@ -24,7 +24,7 @@
*
* @var string
*/
- public static $version = '4.3.20';
+ public static $version = '4.5.18';
/**
* Extension Friendly name.
--- a/redux-framework/redux-core/inc/validation/color/class-redux-validation-color.php
+++ b/redux-framework/redux-core/inc/validation/color/class-redux-validation-color.php
@@ -31,7 +31,7 @@
$test = str_replace( '#', '', Redux_Core::strtolower( trim( $this->value ) ) );
if ( ! in_array( strlen( $test ), array( 3, 6 ), true ) ) {
// translators: %1$s: sanitized value. %2$s: Old value.
- $this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Invalid HTML color code %1$s. Please enter a valid code. No value was saved.', 'redux-framework' ), '<code>' . $this->value . '</code>' );
+ $this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Invalid HTML color code %1$s. Please enter a valid code. No value was saved.', 'redux-framework' ), '<code>' . esc_html( $this->value ) . '</code>' );
$this->warning = $this->field;
$this->value = '';
@@ -47,7 +47,7 @@
if ( $sanitized_value !== $this->value ) {
// translators: %1$s: sanitized value. %2$s: Old value.
- $this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Sanitized value and saved as %1$s instead of %2$s.', 'redux-framework' ), '<code>' . $sanitized_value . '</code>', '<code>' . $this->value . '</code>' );
+ $this->field['msg'] = $this->field['msg'] ?? sprintf( esc_html__( 'Sanitized value and saved as %1$s instead of %2$s.', 'redux-framework' ), '<code>' . esc_html( $sanitized_value ) . '</code>', '<code>' . esc_html( $this->value ) . '</code>' );
$this->field['old'] = $this->value;
$this->field['current'] = $sanitized_value;
--- a/redux-framework/redux-framework.php
+++ b/redux-framework/redux-framework.php
@@ -8,7 +8,7 @@
* Plugin URI: https://wordpress.org/plugins/redux-framework
* GitHub URI: reduxframework/redux-framework
* Description: Build better sites in WordPress fast!
- * Version: 4.5.17
+ * Version: 4.5.18
* Requires at least: 5.3
* Requires PHP: 7.4
* Author: Team Redux