Plugin Directory

Changeset 3287859


Ignore:
Timestamp:
05/05/2025 02:12:15 PM (10 months ago)
Author:
xpro
Message:

V 1.2.8.5 - 05 May 2025

Fix: Resolved shortcode vulnerability issue in theme builder.

Location:
xpro-theme-builder/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • xpro-theme-builder/trunk/changelog.txt

    r3246401 r3287859  
     1= V 1.2.8.5 - 05 May 2025 =
     2
     3Fix: Resolved shortcode vulnerability issue in theme builder.
     4
     5
    16= V 1.2.8.4 - 25 February 2025 =
    27
  • xpro-theme-builder/trunk/plugin.php

    r3228269 r3287859  
    334334        }
    335335
    336         // if post type private and user can not read the post
    337             $post = get_post( $id );
    338             if ( ! $post || $post->post_status === 'private' && ! current_user_can( 'read_post', $id ) ) {
    339             wp_die( __( 'You are not allowed to access this post.', 'xpro-elementor-addons' ), 403 );
     336        $post = get_post( $id );
     337        if ( ! $post ) {
     338            wp_die( __( 'Post not found.', 'xpro-elementor-addons' ), 404 );
     339        }
     340            if ( ! empty( $post->post_password ) && post_password_required( $post ) ) {
     341            wp_die( __( 'This post is password protected.', 'xpro-elementor-addons' ), 403 );
     342        }
     343        if ( $post->post_status === 'trash' ) {
     344            wp_die( __( 'You are not allowed to access this post (Trashed Post).', 'xpro-elementor-addons' ), 403 );
     345        }
     346        $post_status = $post->post_status;
     347        $status_labels = [
     348            'private' => 'Private Post',
     349            'draft' => 'Draft Post',
     350            'pending' => 'Pending Post',
     351            'trash' => 'Trashed Post',
     352        ];
     353        if (
     354            in_array( $post_status, array_keys( $status_labels ), true ) &&
     355            ! current_user_can( 'read_post', $id )
     356        ) {
     357            $label = $status_labels[ $post_status ];
     358            wp_die( sprintf( __( 'You are not allowed to access this post(%s).', 'xpro-elementor-addons' ), $label ), 403 );
    340359        }
    341360
  • xpro-theme-builder/trunk/readme.txt

    r3246401 r3287859  
    11=== Xpro Theme Builder For Elementor - FREE ===
    22Plugin Name: Xpro Theme Builder For Elementor - FREE
    3 Version: 1.2.8.4
     3Version: 1.2.8.5
    44Contributors: Xpro
    55Tags: elementor, theme builder, header footer builder, sticky header, free theme builder
    66Requires at least: 5.0
    7 Tested up to: 6.7.2
     7Tested up to: 6.8.1
    88Stable tag: trunk
    99Requires PHP: 7.0
     
    290290== Changelog ==
    291291
     292= V 1.2.8.5 - 05 May 2025 =
     293
     294Fix: Resolved shortcode vulnerability issue in theme builder.
     295
     296
    292297= V 1.2.8.4 - 25 February 2025 =
    293298
  • xpro-theme-builder/trunk/xpro-theme-builder.php

    r3246401 r3287859  
    66 * Author:      Xpro
    77 * Author URI:  https://www.wpxpro.com/
    8  * Version:     1.2.8.4
     8 * Version:     1.2.8.5
    99 * Developer:   Xpro Team
    1010 * Text Domain: xpro-theme-builder
    11  * Elementor tested up to: 3.27.6
     11 * Elementor tested up to: 3.28.4
    1212 *
    1313 * @package xpro-theme-builder
    1414 */
    1515
    16 define( 'XPRO_THEME_BUILDER_VER', '1.2.8.4' );
     16define( 'XPRO_THEME_BUILDER_VER', '1.2.8.5' );
    1717define( 'XPRO_THEME_BUILDER_FILE', __FILE__ );
    1818define( 'XPRO_THEME_BUILDER_BASE', plugin_basename( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.