CVE-2024-0705

9.8 CRITICAL

📋 TL;DR

This vulnerability allows unauthenticated attackers to perform SQL injection attacks on WordPress sites using the Stripe Payment Plugin for WooCommerce. By manipulating the 'id' parameter, attackers can execute arbitrary SQL queries to extract sensitive data from the database. All WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • Stripe Payment Plugin for WooCommerce (WordPress plugin)
Versions: All versions up to and including 3.7.9
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all WordPress installations with the vulnerable plugin version installed and activated.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including customer payment information, user credentials, and site configuration data leading to data breach, financial fraud, and site takeover.

🟠

Likely Case

Extraction of sensitive customer data (names, emails, addresses), order information, and potentially WordPress user credentials.

🟢

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: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

SQL injection via GET/POST parameters requires minimal technical skill to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.8.0 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=2954934%40payment-gateway-stripe-and-woocommerce-integration&new=2954934%40payment-gateway-stripe-and-woocommerce-integration

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Payment Gateway Stripe and WooCommerce Integration'. 4. Click 'Update Now' if available. 5. Alternatively, download version 3.8.0+ from WordPress plugin repository and manually update.

🔧 Temporary Workarounds

Temporary Plugin Deactivation

all

Disable the vulnerable plugin until patched version can be installed.

wp plugin deactivate payment-gateway-stripe-and-woocommerce-integration

WAF Rule Implementation

all

Add web application firewall rules to block SQL injection attempts on the 'id' parameter.

🧯 If You Can't Patch

  • Disable the Stripe Payment Plugin immediately and use alternative payment methods
  • Implement strict input validation and parameterized queries in custom code

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'Payment Gateway Stripe and WooCommerce Integration' version number.

Check Version:

wp plugin get payment-gateway-stripe-and-woocommerce-integration --field=version

Verify Fix Applied:

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

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in WordPress debug logs
  • Multiple requests with SQL injection patterns in 'id' parameter
  • Unexpected database queries from web server process

Network Indicators:

  • HTTP requests containing SQL keywords (UNION, SELECT, INSERT) in 'id' parameter
  • Abnormal traffic patterns to WooCommerce payment endpoints

SIEM Query:

source="web_server_logs" AND (uri="*id=*UNION*" OR uri="*id=*SELECT*" OR uri="*id=*INSERT*")

🔗 References

📤 Share & Export