CVE-2024-13696
📋 TL;DR
This vulnerability allows unauthenticated attackers to inject malicious JavaScript into WordPress sites using the Flexible Wishlist for WooCommerce plugin. When users view pages containing the injected scripts, their browsers execute the attacker's code, potentially leading to session hijacking, credential theft, or site defacement. All WordPress sites using vulnerable versions of this plugin are affected.
💻 Affected Systems
- Flexible Wishlist for WooCommerce – Ecommerce Wishlist & Save for later
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- 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, redirect visitors to malicious sites, or use the compromised site to attack visitors' browsers.
Likely Case
Attackers will inject scripts to steal user session cookies, redirect users to phishing pages, or display malicious advertisements. This could lead to compromised user accounts and reputation damage.
If Mitigated
With proper web application firewalls and content security policies, the impact is limited to potential data leakage from the specific vulnerable parameter.
🎯 Exploit Status
The vulnerability requires no authentication and exploitation is straightforward via the wishlist_name parameter.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Version 1.2.26 or higher
Vendor Advisory: https://wordpress.org/plugins/flexible-wishlist/#developers
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Go to Plugins → Installed Plugins. 3. Find 'Flexible Wishlist for WooCommerce'. 4. Click 'Update Now' if available. 5. If no update appears, download version 1.2.26+ from WordPress.org and manually update.
🔧 Temporary Workarounds
Temporary Plugin Deactivation
WordPressDisable the vulnerable plugin until patched
wp plugin deactivate flexible-wishlist
Web Application Firewall Rule
allBlock requests containing script tags in wishlist_name parameter
🧯 If You Can't Patch
- Implement strict Content Security Policy headers to limit script execution
- Deploy a web application firewall with XSS protection rules
🔍 How to Verify
Check if Vulnerable:
Check plugin version in WordPress admin under Plugins → Installed Plugins. If version is 1.2.25 or lower, you are vulnerable.
Check Version:
wp plugin get flexible-wishlist --field=version
Verify Fix Applied:
After updating, verify plugin version is 1.2.26 or higher. Test wishlist functionality to ensure it still works properly.
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to wishlist endpoints with script tags in parameters
- Multiple failed wishlist creation attempts with malformed data
Network Indicators:
- HTTP requests containing <script> tags in wishlist_name parameter
- Unusual traffic patterns to wishlist-related endpoints
SIEM Query:
source="wordpress.log" AND ("wishlist_name" AND ("<script>" OR "javascript:" OR "onerror=" OR "onload="))
🔗 References
- https://plugins.trac.wordpress.org/browser/flexible-wishlist/trunk/assets/js/front.js
- https://plugins.trac.wordpress.org/changeset/3230370/
- https://wordpress.org/plugins/flexible-wishlist/#developers
- https://www.wordfence.com/threat-intel/vulnerabilities/id/112456a9-8bb6-4007-87da-6d0fba912498?source=cve