CVE-2024-1514

9.8 CRITICAL

📋 TL;DR

The WP eCommerce plugin for WordPress has a critical SQL injection vulnerability that allows unauthenticated attackers to execute arbitrary SQL queries through the 'cart_contents' parameter. This enables attackers to extract sensitive data like user credentials, payment information, and other database contents. All WordPress sites using WP eCommerce up to version 3.15.1 are affected.

💻 Affected Systems

Products:
  • WP eCommerce WordPress plugin
Versions: All versions up to and including 3.15.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations with vulnerable plugin versions are affected regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to theft of all user data, administrative credentials, payment information, and potential site takeover.

🟠

Likely Case

Extraction of sensitive user data including usernames, email addresses, and potentially hashed passwords.

🟢

If Mitigated

Limited or no data exposure if proper input validation and prepared statements are implemented.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

Time-based blind SQL injection requires automated tools but is well-documented and easily weaponized.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.15.2 or later

Vendor Advisory: https://plugins.trac.wordpress.org/browser/wp-e-commerce/trunk/wpsc-components/marketplace-core-v1/library/Sputnik.php#L334

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins. 3. Find WP eCommerce plugin. 4. Click 'Update Now' if update available. 5. If no update appears, manually download version 3.15.2+ from WordPress repository.

🔧 Temporary Workarounds

Temporary Plugin Deactivation

all

Disable the WP eCommerce plugin until patched

wp plugin deactivate wp-e-commerce

Web Application Firewall Rule

all

Block requests containing suspicious SQL injection patterns in cart_contents parameter

🧯 If You Can't Patch

  • Implement strict input validation for cart_contents parameter
  • Deploy web application firewall with SQL injection protection rules

🔍 How to Verify

Check if Vulnerable:

Check WP eCommerce plugin version in WordPress admin panel under Plugins

Check Version:

wp plugin get wp-e-commerce --field=version

Verify Fix Applied:

Verify plugin version is 3.15.2 or higher

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in WordPress logs
  • Multiple requests with cart_contents parameter containing SQL keywords

Network Indicators:

  • HTTP POST requests to wp-e-commerce endpoints with SQL injection payloads in parameters

SIEM Query:

source="wordpress.log" AND "cart_contents" AND ("SELECT" OR "UNION" OR "SLEEP" OR "BENCHMARK")

🔗 References

📤 Share & Export