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

CVE-2024-9172 Cross-Site Scripting in Demo importer plus
📅 PUBLISHED: 2024-10-02 07:35 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.23%
👁️
0.23% probability
5.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1204.001
👁️
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-9172 is a Stored Cross-Site Scripting (XSS) vulnerability in the Demo Importer Plus WordPress plugin, affecting all versions up to and including 2.0.1. The flaw resides in insufficient input sanitization and output escaping during SVG file uploads. An authenticated attacker with Author-level privileges or higher can upload a malicious SVG file containing arbitrary JavaScript. When any user (including administrators) accesses the uploaded SVG file, the injected script executes in the context of the victim’s browser, potentially leading to session hijacking, defacement, or credential theft.

This vulnerability is specific to the WordPress ecosystem and does not involve Apache or Nginx directly. The plugin’s failure to properly validate SVG uploads allows attackers to bypass standard file type restrictions. The EPSS score is 0.0%, indicating low exploitation likelihood at the time of analysis, but the risk increases if the plugin is widely deployed.

⚡ 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 is a WordPress plugin vulnerability. The plugin is distributed via the WordPress plugin repository and third-party marketplaces. Users should verify the integrity of their plugin files and ensure they are obtained from trusted sources. No known supply chain compromise has been reported for this specific CVE.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Base Score: 6.4 (Medium)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Author-level)
  • User Interaction: Required (victim must access the SVG file)
  • Scope: Changed (impact may extend beyond the vulnerable component)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

The threat level is Medium due to the requirement for authenticated access and user interaction. However, the potential for stored XSS in a WordPress admin context elevates the risk for targeted attacks.

Deep Dive & Mechanics

The vulnerability exists in the file upload functionality of the Demo Importer Plus plugin. The plugin allows users with Author-level access to upload media files, including SVG images. Due to insufficient input sanitization, an attacker can craft an SVG file that contains embedded JavaScript. When the SVG is rendered in a browser, the script executes.

Root Cause:

  • The plugin does not strip or escape JavaScript event handlers (e.g., onload, onerror) or <script> tags from SVG files.
  • The plugin does not validate the MIME type or content of uploaded SVG files against a strict allowlist.
  • Output escaping is not applied when the SVG file URL is rendered in the WordPress media library or frontend.

Attack Flow:

  1. Attacker logs in with Author-level credentials.
  2. Attacker uploads a malicious SVG file (e.g., payload.svg) containing:
    <svg xmlns="http://www.w3.org/2000/svg">
      <script>alert('XSS')</script>
    </svg>
    
  3. The plugin stores the file in the WordPress uploads directory.
  4. When an administrator or other user views the media library or a page displaying the SVG, the script executes.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 2.0.1): The plugin likely uses wp_check_filetype_and_ext() or similar functions but fails to sanitize SVG content. Example vulnerable snippet:

// No sanitization of SVG content
$uploaded_file = wp_handle_upload($_FILES['file'], array('test_form' => false));
// File is stored as-is

Patched Code (hypothetical): A patch would involve:

  • Using wp_sanitize_svg() or a custom function to strip scripts and event handlers.
  • Setting the Content-Type header to image/svg+xml and ensuring proper output escaping.
  • Example fix:
$svg_content = file_get_contents($uploaded_file['file']);
$sanitized_svg = wp_sanitize_svg($svg_content); // hypothetical function
file_put_contents($uploaded_file['file'], $sanitized_svg);

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with Demo Importer Plus plugin <= 2.0.1.
  • Author-level account credentials.

Steps:

  1. Craft a malicious SVG file:
    <svg xmlns="http://www.w3.org/2000/svg">
      <script>
        fetch('/wp-admin/admin-ajax.php?action=your_malicious_action', {
          method: 'POST',
          credentials: 'include',
          body: new URLSearchParams({ 'cmd': 'steal_cookies' })
        });
      </script>
    </svg>
    
  2. Log in as Author and navigate to Media > Add New.
  3. Upload the SVG file.
  4. Obtain the URL of the uploaded SVG (e.g., https://target.com/wp-content/uploads/2024/01/payload.svg).
  5. Send the link to a privileged user (e.g., via comment or email) or wait for an admin to view the media library.

Expected Outcome: The victim’s browser executes the script, potentially exfiltrating session cookies or performing actions on their behalf.

Blue Team (Detection & Hardening)

Detection:

  • Monitor file uploads for SVG files with suspicious content (e.g., <script> tags, event handlers).
  • Use WAF rules to block SVG uploads containing JavaScript.
  • Review access logs for unusual patterns in media file access.

Hardening:

  • Disable SVG uploads entirely if not needed.
  • Implement a content security policy (CSP) that restricts script execution.
  • Use a plugin like "Safe SVG" to sanitize SVG files.
  • Restrict Author-level upload permissions if possible.

Indicators of Compromise (IOCs)

  • File Hashes (SHA256): (Example – actual hashes depend on payload)
    • e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (malicious SVG)
  • File Paths:
    • /wp-content/uploads/YYYY/MM/payload.svg
  • Network Indicators:
    • Outbound HTTP requests to attacker-controlled domains from WordPress admin pages.
  • Log Entries:
    • WordPress debug log entries showing failed sanitization attempts.
    • Web server logs with POST /wp-admin/async-upload.php followed by GET /wp-content/uploads/.../payload.svg.

Detection Engineering

YARA Rule

rule CVE_2024_9172_SVG_XSS {
    meta:
        description = "Detects malicious SVG files exploiting CVE-2024-9172"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-9172"
    strings:
        $svg_tag = "<svg"
        $script_tag = "<script"
        $onload = "onload="
        $onerror = "onerror="
    condition:
        $svg_tag and ($script_tag or $onload or $onerror)
}

Sigma Rule

title: CVE-2024-9172 SVG Upload with Script Content
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects upload of SVG files containing script tags or event handlers
author: Valters IT
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith: '\wp-content\uploads\'
        TargetFilename|endswith: '.svg'
    filter:
        TargetFilename|contains: 'sanitized'
    condition: selection and not filter
falsepositives:
    - Legitimate SVG files with embedded scripts (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-9172 SVG XSS Payload Detected"; flow:to_server; content:"POST"; http_method; content:"/wp-admin/async-upload.php"; http_uri; content:"<script"; file_data; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable SVG uploads in the plugin settings or via WordPress functions.php:
    add_filter('upload_mimes', function($mimes) {
        unset($mimes['svg']);
        return $mimes;
    });
    
  2. Restrict Author-level permissions – consider downgrading users to Contributor if they do not need upload capabilities.
  3. Apply a WAF rule to block SVG files containing <script> or event handlers.

Long-Term Fix:

  • Update the plugin to a patched version once released (currently UNKNOWN).
  • If no patch is available, replace the plugin with an alternative that properly sanitizes SVG uploads.
  • Implement a Content Security Policy (CSP) header:
    Content-Security-Policy: default-src 'self'; script-src 'none'; img-src 'self' data:;
    

Valters IT – Securing digital ecosystems through proactive threat intelligence.

👁️ 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/demo-importer-plus"
http.html:"demo-importer-plus"

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