CVE-2024-13559

6.4 MEDIUM

📋 TL;DR

The TemplatesNext ToolKit WordPress plugin has a stored XSS vulnerability that allows authenticated attackers with contributor-level access or higher to inject malicious scripts into website pages. These scripts execute whenever users visit the compromised pages, potentially stealing credentials or performing unauthorized actions. All WordPress sites using this plugin up to version 3.2.9 are affected.

💻 Affected Systems

Products:
  • TemplatesNext ToolKit WordPress Plugin
Versions: All versions up to and including 3.2.9
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with plugin enabled and at least one user with contributor-level access.

⚠️ 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, deface websites, redirect users to malicious sites, or install backdoors for persistent access.

🟠

Likely Case

Attackers with contributor accounts inject malicious scripts to steal user session cookies or credentials, potentially gaining higher privileges.

🟢

If Mitigated

With proper user access controls and input validation, impact is limited to low-privilege data theft from users visiting compromised pages.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires authenticated access but is straightforward once attacker has contributor-level credentials.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.3.0 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3158475/templatesnext-toolkit/trunk/inc/woo-compare-wishlist/includes/wishlist/shortcode.php

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find TemplatesNext ToolKit. 4. Click 'Update Now' if available. 5. Alternatively, download latest version from WordPress repository and replace plugin files.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate templatesnext-toolkit

Restrict User Roles

linux

Temporarily remove contributor-level access from untrusted users

wp user list --role=contributor --field=ID | xargs wp user set-role subscriber

🧯 If You Can't Patch

  • Remove contributor-level access from all untrusted users
  • Implement web application firewall with XSS protection rules

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > TemplatesNext ToolKit version. If version is 3.2.9 or lower, system is vulnerable.

Check Version:

wp plugin get templatesnext-toolkit --field=version

Verify Fix Applied:

Verify plugin version is 3.3.0 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual shortcode usage in post/page edits
  • Multiple failed login attempts followed by contributor account access
  • Suspicious script tags in page content

Network Indicators:

  • Unexpected JavaScript loading from WordPress pages
  • Outbound connections to suspicious domains after page load

SIEM Query:

source="wordpress.log" AND ("tx_woo_wishlist_table" OR "templatesnext") AND ("script" OR "onclick" OR "javascript:")

🔗 References

📤 Share & Export