The Plus Addons for Elementor – Addons for Elementor, Page Templates, Widgets, Mega Menu, WooCommerce <= 6.4.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via Progress Bar
Description
The The Plus Addons for Elementor – Addons for Elementor, Page Templates, Widgets, Mega Menu, WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's Progress Bar shortcode in all versions up to, and including, 6.4.9 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
CVSS Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NTechnical Details
<=6.4.9What Changed in the Fix
Changes introduced in v6.4.10
Source Code
WordPress.org SVNThis research plan targets **CVE-2026-3311**, a Stored Cross-Site Scripting (XSS) vulnerability in **The Plus Addons for Elementor** (up to version 6.4.9). The vulnerability exists because the "Progress Bar" widget/shortcode fails to sanitize or escape user-supplied attributes before rendering them.…
Show full research plan
This research plan targets CVE-2026-3311, a Stored Cross-Site Scripting (XSS) vulnerability in The Plus Addons for Elementor (up to version 6.4.9). The vulnerability exists because the "Progress Bar" widget/shortcode fails to sanitize or escape user-supplied attributes before rendering them.
1. Vulnerability Summary
- Vulnerability: Stored Cross-Site Scripting (XSS)
- Component: Progress Bar (Widget/Shortcode)
- Vulnerable Version: <= 6.4.9
- Sink: Direct
echoor concatenation of widget settings/attributes without proper escaping (esc_html,esc_attr, orwp_kses). - Source: Attributes provided via the Progress Bar shortcode or Elementor widget settings (e.g.,
title,prefix,suffix, orpercentage_text).
2. Attack Vector Analysis
- Endpoint:
wp-admin/post.php(for Elementor editing) orwp-admin/post-new.php(for shortcode insertion). - Authentication: Contributor-level access or higher is required to create/edit posts.
- Payload Location: Inside a shortcode
[tp_progress_bar]or within the Elementor JSON metadata (_elementor_data) for thetp-progress-barwidget. - Preconditions: The plugin must be active, and the "Progress Bar" widget must be enabled in the plugin's dashboard.
3. Code Flow (Inferred)
- Registration: The plugin registers the Progress Bar widget (likely in a file named
modules/widgets/tp_progress_bar.phpor similar, following the naming convention seen intp_blog_listout.php). - Shortcode Handling: If triggered via shortcode, a callback function parses
$atts. - Rendering:
- In the
render()method of the widget class, settings are retrieved via$this->get_settings_for_display(). - In the shortcode callback, attributes are processed.
- In the
- Vulnerable Sink: The code performs an operation similar to:
echo '<span class="pb-title">' . $settings['title'] . '</span>';
instead of:echo '<span class="pb-title">' . wp_kses_post( $settings['title'] ) . '</span>';
4. Nonce Acquisition Strategy
While the vulnerability is triggered by a shortcode (which typically doesn't require a nonce for frontend rendering), a Contributor needs a nonce to save the post initially.
- Post Creation Nonce: Standard WordPress
_wpnonceforpost.php. - Elementor Heartbeat (if applicable): If the agent uses the Elementor Editor to inject the payload, it must extract the
elementorCommonConfignonce.- Tool:
browser_navigatetowp-admin/post-new.php?post_type=page. - Tool:
browser_eval("elementorCommonConfig.ajax.nonce").
- Tool:
Note: For a "shortcode" vulnerability, simply creating a post via WP-CLI with the malicious shortcode is the most direct path and bypasses the need for manual nonce extraction.
5. Exploitation Strategy
Step 1: Discover Shortcode Attributes
Since the exact attribute names are not in the provided source snippets, the agent should first confirm the shortcode name and attributes.
- Execute:
grep -r "add_shortcode" .in the plugin directory to find the "Progress Bar" shortcode tag. - Search for the callback function to identify attributes (e.g.,
title,label,symbol).
Step 2: Inject Payload (Shortcode Method)
Use the http_request tool (acting as a Contributor) or wp-cli to create a post containing the payload.
- Action: Create a post as a Contributor.
- Payload:
[tp_progress_bar title='<img src=x onerror=alert("CVE-2026-3311")>']
(Replacetitlewith the actual attribute found in Step 1).
Step 3: Trigger Execution
- Navigate to the permalink of the newly created post using
browser_navigate. - Observe the browser for the
alertor check the DOM for the unescaped<img>tag.
6. Test Data Setup
- Plugin Activation: Ensure
the-plus-addons-for-elementor-page-builderis active. - Contributor User:
wp user create attacker attacker@example.com --role=contributor --user_pass=password123 - Target Post:
wp post create --post_type=post --post_status=publish --post_title="XSS Test" --post_content="[tp_progress_bar title='<script>alert(1)</script>']" --user=attacker
7. Expected Results
- The HTML source of the rendered page will contain the raw payload:
<span class="..."><script>alert(1)</script></span> - The browser will execute the script, confirming Stored XSS.
8. Verification Steps
- CLI Check:
wp post get $(wp post list --title="XSS Test" --field=ID) --field=post_content
Verify the payload exists in the database. - Frontend Check:
Usehttp_requestto fetch the post URL and search for the literal string<script>alert(1)</script>in the response body.
9. Alternative Approaches
If the shortcode vector fails, target the Elementor widget configuration:
- As a Contributor, open the Elementor editor for a page.
- Add the Progress Bar widget.
- Set the "Title" or "Label" field to
<img src=x onerror=alert(document.domain)>. - Save the page and view the result.
- Check
wp_postmetafor the payload:wp post meta get <ID> _elementor_data(This will show the payload in a JSON-encoded string).
Specific Identifiers to Verify in Source (via grep)
- Widget Slug:
tp-progress-bar(Likely inget_name()in the widget class). - Shortcode Tag: Check for
add_shortcode(calls. - Localized JS Variable: If the plugin passes settings to JS, look for
wp_localize_scriptcalls involvingtp-progress-bar. Based on other files, it might be something liketheplus_progress_bar.
Summary
The Progress Bar widget and shortcode in The Plus Addons for Elementor fail to properly sanitize or escape attributes such as title, prefix, and suffix. This allows authenticated attackers with Contributor-level access or higher to inject arbitrary JavaScript into pages, leading to stored cross-site scripting (XSS).
Vulnerable Code
// File: modules/widgets/tp_progress_bar.php protected function render() { $settings = $this->get_settings_for_display(); // ... (logic to handle progress bar output) if ( ! empty( $settings['title'] ) ) { echo '<span class="tp-progress-bar-title">' . $settings['title'] . '</span>'; // Line ~596 } if ( ! empty( $settings['prefix'] ) ) { echo '<span class="tp-pb-prefix">' . $settings['prefix'] . '</span>'; // Line ~607 } // ... }
Security Fix
@@ -596,1 +596,1 @@ - echo '<span class="tp-progress-bar-title">' . $settings['title'] . '</span>'; + echo '<span class="tp-progress-bar-title">' . wp_kses_post( $settings['title'] ) . '</span>'; @@ -607,1 +607,1 @@ - echo '<span class="tp-pb-prefix">' . $settings['prefix'] . '</span>'; + echo '<span class="tp-pb-prefix">' . wp_kses_post( $settings['prefix'] ) . '</span>';
Exploit Outline
The exploit is executed by an authenticated user with at least Contributor-level permissions. The attacker creates or edits a post and includes the Progress Bar widget (via Elementor) or its corresponding shortcode. In the 'Title', 'Prefix', or 'Suffix' fields of the widget settings, the attacker enters a payload such as `<script>alert(document.cookie)</script>` or `<img src=x onerror=alert(1)>`. When the post is saved and rendered on the frontend, the plugin echoes the raw payload into the HTML without escaping, causing the browser to execute the malicious script when a victim visits the page.
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.