diff --git a/includes/rzp-payment-buttons.php b/includes/rzp-payment-buttons.php index 1aac103..dcadb25 100644 --- a/includes/rzp-payment-buttons.php +++ b/includes/rzp-payment-buttons.php @@ -88,16 +88,16 @@ protected function get_views() //All Buttons $class = ($current === 'all' ? ' class="current"' :''); - $all_url = remove_query_arg('status'); + $all_url = esc_url(remove_query_arg('status')); $views['all'] = "All"; //Recovered link - $foo_url = add_query_arg('status','active'); + $foo_url = esc_url(add_query_arg('status','active')); $class = ($current === 'active' ? ' class="current"' :''); $views['status'] = "Enabled"; //Abandon - $bar_url = add_query_arg('status','inactive'); + $bar_url = esc_url(add_query_arg('status','inactive')); $class = ($current === 'inactive' ? ' class="current"' :''); $views['disabled'] = "Disabled"; diff --git a/razorpay-payment-buttons.php b/razorpay-payment-buttons.php index 47b6773..8679080 100644 --- a/razorpay-payment-buttons.php +++ b/razorpay-payment-buttons.php @@ -3,7 +3,7 @@ * Plugin Name: Razorpay Payment Button for Elementor * Plugin URI: https://github.com/razorpay/payment-button-elementor-plugin * Description: Razorpay Payment Button for Elementor - * Version: 1.2.5 + * Version: 1.2.6 * Author: Razorpay * Author URI: https://razorpay.com */ diff --git a/readme.txt b/readme.txt index 43538bf..7a3b441 100644 --- a/readme.txt +++ b/readme.txt @@ -1,8 +1,8 @@ === Razorpay Payment Button Elementor Plugin === Contributors: razorpay Tags: Payment gateway, Donate button, UPI/credit/debit card, Payment plugin, India -Tested up to: 6.0 -Stable tag: 1.2.5 +Tested up to: 6.6 +Stable tag: 1.2.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -96,6 +96,9 @@ Connect your WordPress website with your Razorpay account and you're all ready t == Changelog == += 1.2.6 = +* Added security enhancements + = 1.2.5 = * Fix fatal error: Cannot use isset() on the result of an expression * Fixed 'constant already defined' error in sdk diff --git a/templates/razorpay-button-view-templates.php b/templates/razorpay-button-view-templates.php index 2f58a39..f74d636 100644 --- a/templates/razorpay-button-view-templates.php +++ b/templates/razorpay-button-view-templates.php @@ -25,7 +25,7 @@ function razorpay_view_button() { wp_die("This page consist some request parameters to view response"); } - $pagenum = $_REQUEST['paged']; + $pagenum = sanitize_text_field($_REQUEST['paged']); // nosemgrep $previous_page_url = admin_url('admin.php?page=razorpay_button_elementor&paged='.$pagenum); $button_detail = $this->fetch_button_detail(sanitize_text_field($_REQUEST['btn'])); @@ -36,36 +36,36 @@ function razorpay_view_button() Button List - '.$button_detail['title'].' + '. esc_html($button_detail['title']) . '