CVE-2015-10113: URL Redirection to Untrusted Site ('Open Redirect') (CWE-601)
value: A vulnerability classified as problematic was found in WooFramework Tweaks Plugin up to 1.0.1 on WordPress. Affected by this vulnerability is the function admin_screen_logic of the file wooframework-tweaks.php. The manipulation of the argument url leads to open redirect. The attack can be launched remotely. Upgrading to version 1.0.2 is able to address this issue. The identifier of the patch is 3b57d405149c1a59d1119da6e0bb8212732c9c88. It is recommended to upgrade the affected component. The identifier VDB-230653 was 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/wooframework-tweaks
Language: Other
Files changed: readme.txt, wooframework-tweaks.php
Commit date: 2015-04-22 13:42:16 +0000
Commit message: V1.0.2 - Security Fix for _query_arg vulnerability.

git-svn-id: https://plugins.svn.wordpress.org/wooframework-tweaks/trunk@1142179 b8457f37-d9ea-0310-8a92-e5e31aec5664

Diff: diff --git a/readme.txt b/readme.txt
index 24011d0..890743e 100755
--- a/readme.txt
+++ b/readme.txt
@@ -1,12 +1,12 @@
 === WooFramework Tweaks ===
 Contributors: woothemes,mattyza,jeffikus
 Donate link: http://woothemes.com/
 Tags: wooframework,settings
 Requires at least: 3.9.1
-Tested up to: 3.9.1
-Stable tag: 1.0.1
+Tested up to: 4.1.1
+Stable tag: 1.0.2
 License: GPLv3 or later
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 
 Tweak a few of the WooFramework's filters and features, via a neat interface.
 
@@ -44,10 +44,14 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
 1. The "Tweaks" administration screen.
 
 
 == Upgrade Notice ==
 
+= 1.0.2 =
+* 2015-04-22
+* Security Fix for add_query_arg vulnerability
+
 = 1.0.1 =
 * 2014-08-18
 * Adds WF export capabilities
 * Adds better descriptions for tweaks options
 * Fixes generator removal logic
@@ -56,10 +60,14 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
 * 2014-07-03
 * Initial release. Woo!
 
 == Changelog ==
 
+= 1.0.2 =
+* 2015-04-22
+* Security Fix for add_query_arg vulnerability
+
 = 1.0.1 =
 * 2014-08-18
 * Adds WF export capabilities
 * Adds better descriptions for tweaks options
 * Fixes generator removal logic
diff --git a/wooframework-tweaks.php b/wooframework-tweaks.php
index d1091f8..d356164 100755
--- a/wooframework-tweaks.php
+++ b/wooframework-tweaks.php
@@ -1,15 +1,15 @@
 <?php
 /**
  * Plugin Name: WooFramework Tweaks
  * Plugin URI: http://github.com/woothemes/wooframework-tweaks/
  * Description: Hidey ho, neighborino! Lets add a few options back to the WooFramework, for a bit of extra fine tuning, shall we?
- * Version: 1.0.1
+ * Version: 1.0.2
  * Author: WooThemes
  * Author URI: http://woothemes.com/
  * Requires at least: 3.9.1
- * Tested up to: 3.9.1
+ * Tested up to: 4.1.1
  *
  * Text Domain: wooframework-tweaks
  * Domain Path: /languages/
  *
  * @package WooFramework_Tweaks
@@ -316,11 +316,11 @@ final class WooFramework_Tweaks {
 
 			// Redirect on settings save, and exit.
 			$url = add_query_arg( 'page', $page );
 			$url = add_query_arg( 'updated', 'true', $url );
 
-			wp_safe_redirect( $url );
+			wp_safe_redirect( esc_url( $url ) );
 			exit;
 		}
 	} // End admin_screen_logic()
 
 	/**

Vulnerable code: Tested up to: 3.9.1
Stable tag: 1.0.1
 * Version: 1.0.1
 * Tested up to: 3.9.1
			wp_safe_redirect( $url );
Fixed code: Tested up to: 4.1.1
Stable tag: 1.0.2
= 1.0.2 =
* 2015-04-22
* Security Fix for add_query_arg vulnerability

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

 * Version: 1.0.2
 * Tested up to: 4.1.1
			wp_safe_redirect( esc_url( $url ) );