CVE-2024-51581

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the NicheAddons Restaurant & Cafe Addon for Elementor WordPress plugin allows attackers to inject malicious scripts into web pages. When users view affected pages, the scripts execute in their browsers, potentially stealing credentials or performing unauthorized actions. WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • NicheAddons Restaurant & Cafe Addon for Elementor
Versions: All versions up to and including 1.5.6
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with Elementor and the Restaurant & Cafe Addon plugin installed.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator credentials, take over WordPress sites, deface websites, or redirect visitors to malicious sites.

🟠

Likely Case

Attackers inject malicious scripts to steal user session cookies or credentials, potentially compromising user accounts.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before reaching users.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Stored XSS vulnerabilities are commonly exploited. Attackers need contributor-level access or higher to inject scripts.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.5.7 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/restaurant-cafe-addon-for-elementor/wordpress-restaurant-cafe-addon-for-elementor-plugin-1-5-6-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Restaurant & Cafe Addon for Elementor'. 4. Click 'Update Now' if update available. 5. Alternatively, download latest version from WordPress repository and replace plugin files.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the Restaurant & Cafe Addon plugin until patched

Implement Content Security Policy

linux

Add CSP headers to restrict script execution sources

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to nginx config: add_header Content-Security-Policy "default-src 'self'; script-src 'self'";

🧯 If You Can't Patch

  • Restrict user roles that can create/edit content to trusted administrators only
  • Implement web application firewall (WAF) rules to block XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Plugins > Installed Plugins for 'Restaurant & Cafe Addon for Elementor' version 1.5.6 or earlier

Check Version:

wp plugin list --name='restaurant-cafe-addon-for-elementor' --field=version

Verify Fix Applied:

Verify plugin version is 1.5.7 or later in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin endpoints
  • Suspicious script tags in content submissions

Network Indicators:

  • Malicious script payloads in HTTP requests
  • Unexpected external script loads

SIEM Query:

source="wordpress.log" AND ("restaurant-cafe-addon" OR "nicheaddons") AND ("script" OR "onerror" OR "javascript:")

🔗 References

📤 Share & Export