Plugin Directory

Changeset 3468574


Ignore:
Timestamp:
02/24/2026 11:05:01 AM (5 weeks ago)
Author:
babbardel
Message:

Security: add capability checks to AJAX handlers. Update changelog and metadata for 2.10.6.

Location:
customify/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • customify/trunk/includes/class-customify-style-manager.php

    r2412502 r3468574  
    870870            check_ajax_referer( 'customify_style_manager_user_feedback', 'nonce' );
    871871
     872            if ( ! current_user_can( 'manage_options' ) ) {
     873                wp_send_json_error( esc_html__( 'You do not have permission to perform this action.', 'customify' ) );
     874            }
     875
    872876            if ( empty( $_POST['type'] ) ) {
    873877                wp_send_json_error( esc_html__( 'No type provided', 'customify' ) );
  • customify/trunk/includes/extras.php

    r3468534 r3468574  
    442442    check_ajax_referer( 'customify_migrate_customizations_from_parent_to_child_theme', 'nonce_migrate' );
    443443
     444    if ( ! current_user_can( 'manage_options' ) ) {
     445        wp_send_json_error( esc_html__( 'You do not have permission to perform this action.', 'customify' ) );
     446    }
     447
    444448    $parent_theme = wp_get_theme( get_template() );
    445449    if ( ! $parent_theme->exists() ) {
  • customify/trunk/readme.txt

    r3468534 r3468574  
    3232
    3333= 2.10.6 =
     34* Security: added capability checks to AJAX handlers for defense-in-depth.
    3435* Fix inline font script breaking AJAX-based theme navigation.
     36* PHP 8.x compatibility: added null safety guards for array operations.
     37* Updated minimum PHP requirement to 7.4.
     38* Updated minimum WordPress requirement to 5.9.
     39* Tested with WordPress 6.9.
    3540
    3641= 2.10.5 =
Note: See TracChangeset for help on using the changeset viewer.