CVE-2025-24673

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the Ketchup Shortcodes WordPress plugin allows attackers to inject malicious scripts that execute when users view affected pages. All WordPress sites using vulnerable versions of this plugin are affected. The vulnerability enables attackers to steal session cookies, redirect users, or perform actions on their behalf.

💻 Affected Systems

Products:
  • Ketchup Shortcodes WordPress Plugin
Versions: All versions up to and including 0.1.2
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the Ketchup Shortcodes plugin installed and activated.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator credentials, take over the WordPress site, install backdoors, deface the website, or use the compromised site to attack visitors.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies, redirect users to phishing sites, or perform actions as logged-in users.

🟢

If Mitigated

With proper web application firewalls and content security policies, the impact is limited to potential data leakage from the specific vulnerable page.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

XSS vulnerabilities in WordPress plugins are commonly exploited. The vulnerability requires user interaction or content creation privileges.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.1.3 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/ketchup-shortcodes-pack/vulnerability/wordpress-ketchup-shortcodes-plugin-0-1-2-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Ketchup Shortcodes' and click 'Update Now'. 4. Alternatively, download version 0.1.3+ from WordPress.org and manually replace the plugin files.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate ketchup-shortcodes

Implement Content Security Policy

all

Add CSP headers to restrict script execution

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Add to wp-config.php: header("Content-Security-Policy: default-src 'self'; script-src 'self'");

🧯 If You Can't Patch

  • Remove the Ketchup Shortcodes plugin completely from your WordPress installation
  • Implement a web application firewall (WAF) with XSS protection rules

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for Ketchup Shortcodes version 0.1.2 or earlier

Check Version:

wp plugin get ketchup-shortcodes --field=version

Verify Fix Applied:

Verify plugin version is 0.1.3 or later in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to WordPress admin-ajax.php with script tags
  • Multiple failed login attempts followed by successful login

Network Indicators:

  • Outbound connections to suspicious domains from your WordPress server
  • Unexpected JavaScript payloads in HTTP responses

SIEM Query:

source="wordpress.log" AND ("ketchup-shortcodes" OR "admin-ajax.php") AND ("<script>" OR "javascript:" OR "onerror=" OR "onload=")

🔗 References

📤 Share & Export