CVE-2015-10104: URL Redirection to Untrusted Site ('Open Redirect') (CWE-601)
value: A vulnerability, which was classified as problematic, has been found in Icons for Features Plugin 1.0.0 on WordPress. Affected by this issue is some unknown functionality of the file classes/class-icons-for-features-admin.php. The manipulation of the argument redirect_url leads to open redirect. The attack may be launched remotely. Upgrading to version 1.0.1 is able to address this issue. The name of the patch is 63124c021ae24b68e56872530df26eb4268ad633. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-227756.
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-04-30T21:15Z
Repository: https://github.com/wp-plugins/icons-for-features
Language: PHP
Files changed: classes/class-icons-for-features-admin.php, icons-for-features.php, readme.txt
Commit date: 2015-04-22 13:43:56 +0000
Commit message: V1.0.1 - Security Fix for _query_arg vulnerability.

git-svn-id: https://plugins.svn.wordpress.org/icons-for-features/trunk@1142181 b8457f37-d9ea-0310-8a92-e5e31aec5664

Diff: diff --git a/classes/class-icons-for-features-admin.php b/classes/class-icons-for-features-admin.php
index 4edba7a..bdadcc7 100755
--- a/classes/class-icons-for-features-admin.php
+++ b/classes/class-icons-for-features-admin.php
@@ -58,11 +58,11 @@ class Icons_For_Features_Admin {
 		if ( isset( $_GET['action'] ) && ( 'icons-for-features-dismiss' == $_GET['action'] ) && isset( $_GET['nonce'] ) && check_admin_referer( 'icons-for-features-dismiss', 'nonce' ) ) {
 			update_option( 'icons_for_features_dismiss_activation_notice', true );
 
 			$redirect_url = remove_query_arg( 'action', remove_query_arg( 'nonce', $_SERVER['REQUEST_URI'] ) );
 
-			wp_safe_redirect( $redirect_url );
+			wp_safe_redirect( esc_url( $redirect_url ) );
 			exit;
 		}
 	} // End maybe_process_dismiss_link()
 
 	/**
diff --git a/icons-for-features.php b/icons-for-features.php
index 350b7b6..2c2bba0 100755
--- a/icons-for-features.php
+++ b/icons-for-features.php
@@ -1,15 +1,15 @@
 <?php
 /**
  * Plugin Name: Icons For Features
  * Plugin URI: http://www.woothemes.com/products/icons-for-features/
  * Description: Hey there! Do you want to display awesome icons for each of your features? Look no further, I'm here to help!
- * Version: 1.0.0
+ * Version: 1.0.1
  * Author: WooThemes
  * Author URI: http://woothemes.com/
  * Requires at least: 3.8.1
- * Tested up to: 3.8.1
+ * Tested up to: 4.1.1
  *
  * Text Domain: icons-for-features
  * Domain Path: /languages/
  *
  * @package Icons_For_Features
diff --git a/readme.txt b/readme.txt
index e3f6887..767120e 100755
--- a/readme.txt
+++ b/readme.txt
@@ -1,12 +1,12 @@
 === Icons for Features ===
 Contributors: woothemes,mattyza
 Donate link: http://woothemes.com/
 Tags: features,icons,font-awesome
 Requires at least: 3.8.1
-Tested up to: 3.8.1
-Stable tag: 1.0.0
+Tested up to: 4.1.1
+Stable tag: 1.0.1
 License: GPLv3 or later
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 
 Display an icon for a feature, instead of an image, in the "Features by WooThemes" plugin.
 
@@ -56,14 +56,22 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
 2. The Features list screen, showcasing icons for the features.
 
 
 == Upgrade Notice ==
 
+= 1.0.1 =
+* 2015-04-22
+* Security Fix for remove_query_arg vulnerability
+
 = 1.0.0 =
 * 2014-03-18
 * Initial release. Woo!
 
 == Changelog ==
 
+= 1.0.1 =
+* 2015-04-22
+* Fix for remove_query_arg vulnerability
+
 = 1.0.0 =
 * 2014-03-18
 * Initial release. Woo!
\ No newline at end of file

Vulnerable code: 			wp_safe_redirect( $redirect_url );
 * Version: 1.0.0
 * Tested up to: 3.8.1
Tested up to: 3.8.1
Stable tag: 1.0.0
Fixed code: 			wp_safe_redirect( esc_url( $redirect_url ) );
 * Version: 1.0.1
 * Tested up to: 4.1.1
Tested up to: 4.1.1
Stable tag: 1.0.1
= 1.0.1 =
* 2015-04-22
* Security Fix for remove_query_arg vulnerability

= 1.0.1 =
* 2015-04-22
* Fix for remove_query_arg vulnerability