CVE-2015-10115: URL Redirection to Untrusted Site ('Open Redirect') (CWE-601)
value: A vulnerability, which was classified as problematic, was found in WooSidebars Sidebar Manager Converter Plugin up to 1.1.1 on WordPress. This affects the function process_request of the file classes/class-woosidebars-sbm-converter.php. The manipulation leads to open redirect. It is possible to initiate the attack remotely. Upgrading to version 1.1.2 is able to address this issue. The patch is named a0efb4ffb9dfe2925b889c1aa5ea40b4abbbda8a. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-230655.
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-05T18:15Z
Repository: https://github.com/wp-plugins/woosidebars-sbm-converter
Language: Other
Files changed: changelog.txt, classes/class-woosidebars-sbm-converter.php, readme.txt, woosidebars-sbm-converter.php
Commit date: 2015-04-22 13:44:37 +0000
Commit message: V1.1.2 - Security Fix for _query_arg vulnerability.

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

Diff: diff --git a/changelog.txt b/changelog.txt
index 2466d0f..ede84e4 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,7 +1,10 @@
 *** Sidebar Manager to WooSidebars Converter Changelog ***
 
+2015.04.22 - version 1.1.2
+* classes/class-woosidebars-sbm-converter.php - Security Fix for remove_query_arg vulnerability
+
 2013.01.14 - version 1.1.1
  * /classes/class-woosidebars-sbm-converter-updater.php - REMOVED.
  * /classes/class-woosidebars-sbm-converter.php - Replaced camelCase WooSidebars with Woosidebars in class name, in accordance with WordPress class naming standards.
  * woosidebars-sbm-converter.php - Updated WooSidebars to Woosidebars in class instantiation.
 
diff --git a/classes/class-woosidebars-sbm-converter.php b/classes/class-woosidebars-sbm-converter.php
index 4ff9bd6..ecbbc05 100644
--- a/classes/class-woosidebars-sbm-converter.php
+++ b/classes/class-woosidebars-sbm-converter.php
@@ -141,11 +141,11 @@ class Woosidebars_SBM_Converter {
 
 			if ( $response == true ) {
 				$status = 'true';
 			}
 
-			wp_safe_redirect( add_query_arg( 'type', urlencode( $_GET['action'] ),  add_query_arg( 'status', urlencode( $status ), add_query_arg( 'page', urlencode( $this->token ),  admin_url( 'tools.php' ) ) ) ) );
+			wp_safe_redirect( esc_url( add_query_arg( 'type', urlencode( $_GET['action'] ),  add_query_arg( 'status', urlencode( $status ), add_query_arg( 'page', urlencode( $this->token ),  admin_url( 'tools.php' ) ) ) ) ) );
 			exit;
 		}
 	} // End process_request()
 
 	/**
diff --git a/readme.txt b/readme.txt
index f67748d..4d7aeea 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,11 +1,11 @@
 === WooSidebars Sidebar Manager Converter ===
 Contributors: woothemes, mattyza, jeffikus
 Tags: widgets, sidebars, widget-areas, import, tools, converter
 Requires at least: 3.3
-Tested up to: 3.5
-Stable tag: 1.1.1
+Tested up to: 4.1.1
+Stable tag: 1.1.2
 License: GPLv2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
 Use the WooSidebars Sidebar Manager Converter to convert your sidebars from the WooFramework's old Sidebar Manager to the new WooSidebars plugin.
 
@@ -69,13 +69,21 @@ Looking to contribute code to this plugin? [Fork the repository over at GitHub](
 
 1. The Sidebar Manager converter screen.
 
 == Upgrade Notice ==
 
+= 1.1.2 =
+* 2015-04-22
+* Security Fix for add_query_arg vulnerability
+
 = 1.1.1 =
 Moved to WordPress.org. Woo!
 
 == Changelog ==
 
+= 1.1.2 =
+* 2015-04-22
+* Security Fix for add_query_arg vulnerability
+
 = 1.1.1 = 
 * 2013-01-14
 * Moved to WordPress.org. Woo!
\ No newline at end of file
diff --git a/woosidebars-sbm-converter.php b/woosidebars-sbm-converter.php
index 1cab6bf..1248cbf 100644
--- a/woosidebars-sbm-converter.php
+++ b/woosidebars-sbm-converter.php
@@ -1,11 +1,11 @@
 <?php
 /*
 Plugin Name: WooSidebars - Sidebar Manager to WooSidebars Converter
 Plugin URI: http://woothemes.com/
 Description: Convert your custom sidebars in the WooFramework's Sidebar Manager to Widget Areas in WooSidebars, with the appropriate conditions assigned.
-Version: 1.1.1
+Version: 1.1.2
 Author: WooThemes
 Author URI: http://woothemes.com/
 License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */
 /*  Copyright 2012  WooThemes  (email : info@woothemes.com)
@@ -25,7 +25,7 @@ License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2
 */
     require_once( 'classes/class-woosidebars-sbm-converter.php' );
 
 	global $woosidebars_sbm_converter;
 	$woosidebars_sbm_converter = new Woosidebars_SBM_Converter( __FILE__ );
-	$woosidebars_sbm_converter->version = '1.1.1';
+	$woosidebars_sbm_converter->version = '1.1.2';
 ?>
\ No newline at end of file

Vulnerable code: 			wp_safe_redirect( add_query_arg( 'type', urlencode( $_GET['action'] ),  add_query_arg( 'status', urlencode( $status ), add_query_arg( 'page', urlencode( $this->token ),  admin_url( 'tools.php' ) ) ) ) );
Tested up to: 3.5
Stable tag: 1.1.1
Version: 1.1.1
	$woosidebars_sbm_converter->version = '1.1.1';
Fixed code: 2015.04.22 - version 1.1.2
* classes/class-woosidebars-sbm-converter.php - Security Fix for remove_query_arg vulnerability

			wp_safe_redirect( esc_url( add_query_arg( 'type', urlencode( $_GET['action'] ),  add_query_arg( 'status', urlencode( $status ), add_query_arg( 'page', urlencode( $this->token ),  admin_url( 'tools.php' ) ) ) ) ) );
Tested up to: 4.1.1
Stable tag: 1.1.2
= 1.1.2 =
* 2015-04-22
* Security Fix for add_query_arg vulnerability

= 1.1.2 =
* 2015-04-22
* Security Fix for add_query_arg vulnerability

Version: 1.1.2
	$woosidebars_sbm_converter->version = '1.1.2';