CVE-2015-10114: URL Redirection to Untrusted Site ('Open Redirect') (CWE-601)
value: A vulnerability, which was classified as problematic, has been found in WooSidebars Plugin up to 1.4.1 on WordPress. Affected by this issue is the function enable_custom_post_sidebars of the file classes/class-woo-sidebars.php. The manipulation of the argument sendback leads to open redirect. The attack may be launched remotely. Upgrading to version 1.4.2 is able to address this issue. The patch is identified as 1ac6d6ac26e185673f95fc1ccc56a392169ba601. It is recommended to upgrade the affected component. VDB-230654 is the identifier assigned to this vulnerability.
CWE description: A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a Redirect. This simplifies phishing attacks.
CVSS v3 base score: 6.1
Published: 2023-06-05T16:15Z
Repository: https://github.com/wp-plugins/woosidebars
Language: Other
Files changed: changelog.txt, classes/class-woo-sidebars.php, readme.txt, woosidebars.php
Commit date: 2015-04-22 13:45:12 +0000
Commit message: V1.4.2 - Security Fix for _query_arg vulnerability.

git-svn-id: https://plugins.svn.wordpress.org/woosidebars/trunk@1142184 b8457f37-d9ea-0310-8a92-e5e31aec5664

Diff: diff --git a/changelog.txt b/changelog.txt
index 950a353..443c34f 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,7 +1,11 @@
 *** WooSidebars Changelog ***
 
+2015-04-22 - version 1.4.2
+* Security Fix - remove_query_arg vulnerability
+  /classes/class-woo-sidebars.php
+
 2015.02.17 - version 1.4.1
  * Fix - Fixes an error notice on the homepage, caused by the tag check logic.
    /classes/class-woo-conditions.php
 
 2015.02.17 - version 1.4.0
diff --git a/classes/class-woo-sidebars.php b/classes/class-woo-sidebars.php
index c94b96e..02454a9 100644
--- a/classes/class-woo-sidebars.php
+++ b/classes/class-woo-sidebars.php
@@ -701,11 +701,11 @@ class Woo_Sidebars {
 		} else {
 			update_post_meta($post->ID, '_enable_sidebar', 'yes' );
 		}
 
 		$sendback = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids' ), wp_get_referer() );
-		wp_safe_redirect( $sendback );
+		wp_safe_redirect( esc_url( $sendback ) );
 	} // End enable_custom_post_sidebars()
 
 	/**
 	 * multidimensional_search function.
 	 *
diff --git a/readme.txt b/readme.txt
index 12870cd..c7cd883 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,11 +1,11 @@
 === WooSidebars ===
 Contributors: woothemes, mattyza
 Tags: widgets, sidebars, widget-areas
 Requires at least: 3.3
-Tested up to: 4.1.0
-Stable tag: 1.4.1
+Tested up to: 4.1.1
+Stable tag: 1.4.2
 License: GPLv3 or later
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 
 WooSidebars adds functionality to display different widgets in a sidebar, according to a context (for example, a specific page or a category).
 
@@ -69,10 +69,13 @@ Looking to contribute code to this plugin? [Fork the repository over at GitHub](
 1. The list of custom widget areas.
 2. Adding a custom widget area.
 
 == Upgrade Notice ==
 
+= 1.4.2 =
+Security Fix for XSS vulnerability
+
 = 1.4.1 =
 Fixes an error notice on the homepage, caused by the tag check logic.
 
 = 1.4.0 =
 WordPress 3.8 compatibility.
@@ -93,10 +96,14 @@ Updated for WordPress 3.5+ compatibility. Adjusted "Advanced" tab logic. Fixed b
 = 1.2.0 =
 Moved to WordPress.org. Woo! Added scope to methods and properties where missing.
 
 == Changelog ==
 
+= 1.4.2 =
+* 2015-04-22
+* Security Fix for remove_query_arg vulnerability
+
 = 1.4.1 =
 * 2015-02-17
 Fixes an error notice on the homepage, caused by the tag check logic.
 
 = 1.4.0 =
diff --git a/woosidebars.php b/woosidebars.php
index cdd15f7..482362f 100644
--- a/woosidebars.php
+++ b/woosidebars.php
@@ -3,12 +3,12 @@
  * Plugin Name: WooSidebars
  * Plugin URI: http://woothemes.com/woosidebars/
  * Description: Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
  * Author: WooThemes
  * Author URI: http://woothemes.com/
- * Version: 1.4.1
- * Stable tag: 1.4.1
+ * Version: 1.4.2
+ * Stable tag: 1.4.2
  * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  */
 
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
 
@@ -20,8 +20,8 @@
  // Third-party integrations.
  if ( class_exists( 'Woocommerce' ) ) require_once( 'integrations/integration-woocommerce.php' );
 
  global $woosidebars;
  $woosidebars = new Woo_Sidebars( __FILE__ );
- $woosidebars->version = '1.4.1';
+ $woosidebars->version = '1.4.2';
  $woosidebars->init();
 ?>
\ No newline at end of file

Vulnerable code: 		wp_safe_redirect( $sendback );
Tested up to: 4.1.0
Stable tag: 1.4.1
 * Version: 1.4.1
 * Stable tag: 1.4.1
 $woosidebars->version = '1.4.1';
Fixed code: 2015-04-22 - version 1.4.2
* Security Fix - remove_query_arg vulnerability
  /classes/class-woo-sidebars.php

		wp_safe_redirect( esc_url( $sendback ) );
Tested up to: 4.1.1
Stable tag: 1.4.2
= 1.4.2 =
Security Fix for XSS vulnerability

= 1.4.2 =
* 2015-04-22
* Security Fix for remove_query_arg vulnerability

 * Version: 1.4.2
 * Stable tag: 1.4.2
 $woosidebars->version = '1.4.2';