Skip to content

Commit 3c8d38a

Browse files
authored
Merge pull request #469 from addonify/development
🐛 fix: broken access check.
2 parents 3809f4d + f61f0df commit 3c8d38a

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

README.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Contributors: addonify
44
Tags: wishlist, woocommerce wishlist, product wishlist, add to wishlist, save for later
55
Requires at least: 6.3
6-
Tested up to: 6.8
7-
Stable tag: 2.0.15
6+
Tested up to: 6.9.1
7+
Stable tag: 2.0.16
88
Requires PHP: 7.4
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -149,6 +149,10 @@ Yes, there is. Use `[addonify_wishlist_button]` shortocde to display wishlist bu
149149

150150
== Changelog ==
151151

152+
= 2.0.16 - 15 February, 2026 =
153+
154+
- Fix: Broken Access Control in UDP Agent (CVSS 5.3). Credits to Legion Hunter. Unauthenticated attacker can update option value for "udp_agent_allow_tracking" via "init" hook due to missing authorization and nonce check in it's callback function "on_init".
155+
152156
= 2.0.15 - 31 March, 2025 =
153157

154158
- Fixed : Empty wishlist message for wishlist page and wishlist sidebar.#460

addonify-wishlist.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
* Plugin Name: Addonify - WooCommerce Wishlist
1111
* Plugin URI: https://wordpress.org/plugins/addonify-wishlist
1212
* Description: Addonify WooCommerce Wishlist is a light-weight yet powerful tool that adds a wishlist functionality to your e-commerce shop.
13-
* Version: 2.0.15
13+
* Version: 2.0.16
1414
* Requires at least: 6.3
15-
* Tested up to: 6.8
15+
* Tested up to: 6.9.1
1616
* Requires PHP: 7.4
1717
* Author: Addonify
1818
* Author URI: https://www.addonify.com
@@ -28,7 +28,7 @@
2828
die;
2929
}
3030

31-
define( 'ADDONIFY_WISHLIST_VERSION', '2.0.15' );
31+
define( 'ADDONIFY_WISHLIST_VERSION', '2.0.16' );
3232
define( 'ADDONIFY_WISHLIST_DB_INITIALS', 'addonify_wishlist_' );
3333
define( 'ADDONIFY_WISHLIST_PLUGIN_PATH', __DIR__ );
3434
define( 'ADDONIFY_WISHLIST_PLUGIN_FILE', __FILE__ );

includes/udp/class-udp-agent.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ public function show_settings_ui() {
177177
* @since 1.0.0
178178
*/
179179
private function process_user_tracking_choice() {
180+
// Verify if the user is logged in and has the capability to manage options.
181+
if ( ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) {
182+
wp_safe_redirect( home_url() );
183+
exit;
184+
}
180185

181186
$users_choice = isset( $_GET['udp-agent-allow-access'] ) ? sanitize_text_field( wp_unslash( $_GET['udp-agent-allow-access'] ) ) : ''; //phpcs:ignore
182187

0 commit comments

Comments
 (0)