Plugin Directory

Changeset 3146567


Ignore:
Timestamp:
09/04/2024 05:28:37 PM (18 months ago)
Author:
ignitionwp
Message:

Security improvement on nonce verifications and small bug fix for receipt settings.

Location:
ignitiondeck/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ignitiondeck/trunk/classes/class-idf-wizard.php

    r3142505 r3146567  
    687687            );
    688688
    689             $receipts = get_option( 'md_receipt_settings' );
     689            $receipts = maybe_unserialize( get_option( 'md_receipt_settings' ) );
    690690            $coname   = isset( $receipts['coname'] ) ? $receipts['coname'] : '';
    691691            $coemail  = isset( $receipts['coemail'] ) ? $receipts['coemail'] : '';
     
    744744            $coname              = sanitize_text_field( $_POST['co_name'] );
    745745            $coemail             = sanitize_text_field( $_POST['co_email'] );
    746             $receipts            = get_option( 'md_receipt_settings' );
     746            $receipts            = maybe_unserialize(get_option( 'md_receipt_settings' ));
    747747            $receipts['coname']  = $coname;
    748748            $receipts['coemail'] = $coemail;
  • ignitiondeck/trunk/classes/class-tgm-plugin-activation.php

    r3142505 r3146567  
    17741774                }
    17751775                // Core update screen.
    1776                 if ( isset( $_POST['_wpnonce'] ) && ! wp_verify_nonce( $_POST['_wpnonce'], 'upgrade-core' ) ) {
     1776                if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'upgrade-core' ) ) {
    17771777                    return false;
    17781778                }
  • ignitiondeck/trunk/idf-admin.php

    r3142505 r3146567  
    8787 */
    8888function idf_main_menu() {
    89     //add condition to pass check_admin_referer() warning
    90     if ( isset( $_POST['_idf_main_menu_helper'] ) && isset( $_POST['_wpnonce'] ) && ! wp_verify_nonce( $_POST['_wpnonce'], '_wpnonce' ) ) {
    91         return false;
     89    // Verify nonce if _idf_main_menu_helper is set, regardless of request method
     90    if ( isset($_POST['_idf_main_menu_helper']) &&
     91        ( ! isset($_POST['_wpnonce']) || ! wp_verify_nonce($_POST['_wpnonce'], '_wpnonce'))) {
     92        return false;
    9293    }
    9394    // Check user capabilities.
  • ignitiondeck/trunk/idf.php

    r3142505 r3146567  
    88URI: https://IgnitionDeck.com
    99Description: A crowdfunding and ecommerce plugin for WordPress that helps you crowdfund, pre-order, and sell goods online.
    10 Version: 1.10.1
     10Version: 1.10.2
    1111Author: IgnitionDeck
    1212Author URI: https://IgnitionDeck.com
     
    1818require_once 'idf-globals.php';
    1919global $active_plugins, $idf_current_version;
    20 $idf_current_version = '1.10.1';
     20$idf_current_version = '1.10.2';
    2121require_once 'idf-update.php';
    2222require_once 'classes/class-idf_requirements.php';
  • ignitiondeck/trunk/readme.txt

    r3142505 r3146567  
    55Requires at least: 4.9
    66Tested up to: 6.6
    7 Stable tag: 1.10.1
     7Stable tag: 1.10.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    139139== Changelog ==
    140140
     141= 1.10.2 =
     142
     143* Improved security of nonce verification in a couple places
     144* Fixed an issue when receipt settings where not always being saved correctly
     145
    141146= 1.10.1 =
    142147
Note: See TracChangeset for help on using the changeset viewer.