CVE-2024-54407

7.1 HIGH

📋 TL;DR

This CSRF vulnerability in the CK and SyntaxHighlighter WordPress plugin allows attackers to trick authenticated administrators into performing actions that inject malicious scripts. When exploited, it leads to stored cross-site scripting (XSS) attacks. All WordPress sites using affected plugin versions are vulnerable.

💻 Affected Systems

Products:
  • CK and SyntaxHighlighter WordPress Plugin
Versions: All versions up to and including 3.4.2
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the plugin enabled and an authenticated administrator session.

⚠️ 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 inject persistent malicious scripts that steal admin credentials, deface websites, or redirect visitors to malicious sites.

🟠

Likely Case

Attackers create fake admin interfaces or forms that trick logged-in administrators into executing malicious actions, leading to script injection.

🟢

If Mitigated

With proper CSRF tokens and input validation, the vulnerability would be prevented even if administrators are tricked.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires tricking an authenticated administrator but is technically simple once that condition is met.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.4.3 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/ck-and-syntaxhighlighter/vulnerability/wordpress-ck-and-syntaxhighlighter-plugin-3-4-2-csrf-to-stored-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find CK and SyntaxHighlighter. 4. Click 'Update Now' if available. 5. If no update appears, manually download version 3.4.3+ from WordPress.org and replace plugin files.

🔧 Temporary Workarounds

Temporary Plugin Deactivation

all

Disable the vulnerable plugin until patched

wp plugin deactivate ck-and-syntaxhighlighter

CSRF Protection via .htaccess

linux

Add basic CSRF protection headers

Header set X-Frame-Options "DENY"
Header set Content-Security-Policy "frame-ancestors 'none'"

🧯 If You Can't Patch

  • Implement strict Content Security Policy (CSP) headers to mitigate XSS impact
  • Use web application firewall (WAF) rules to block CSRF attempts

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Plugins > CK and SyntaxHighlighter > Version. If version is 3.4.2 or lower, you are vulnerable.

Check Version:

wp plugin get ck-and-syntaxhighlighter --field=version

Verify Fix Applied:

After update, confirm plugin version shows 3.4.3 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to wp-admin/admin-ajax.php with plugin-specific actions
  • Multiple failed CSRF token validations

Network Indicators:

  • Requests from unexpected referrers to admin endpoints
  • Suspicious iframe or form submissions targeting plugin functions

SIEM Query:

source="wordpress.log" AND ("ck-and-syntaxhighlighter" OR "admin-ajax.php") AND (POST AND NOT "_wpnonce")

🔗 References

📤 Share & Export