CVE-2023-35879
📋 TL;DR
This SQL injection vulnerability in WooCommerce Product Vendors allows attackers to execute arbitrary SQL commands on affected WordPress sites. It affects all versions up to 2.1.78, potentially compromising the database and site integrity. WordPress administrators using this plugin are at risk.
💻 Affected Systems
- WooCommerce Product Vendors WordPress plugin
📦 What is this software?
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise leading to data theft, privilege escalation, site takeover, and potential server compromise via SQL command execution.
Likely Case
Unauthorized data access, modification of product/vendor information, and potential administrative access to the WordPress site.
If Mitigated
Limited impact with proper input validation and database permissions, potentially only read access to non-sensitive data.
🎯 Exploit Status
Exploitation requires shop manager or similar authenticated access. SQL injection techniques are well-documented and easily weaponized.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 2.1.79 or later
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find WooCommerce Product Vendors. 4. Click 'Update Now' if available. 5. Alternatively, download version 2.1.79+ from WordPress.org and manually update.
🔧 Temporary Workarounds
Temporary Plugin Deactivation
allDisable the vulnerable plugin until patched
wp plugin deactivate woocommerce-product-vendors
Web Application Firewall Rules
allBlock SQL injection patterns targeting the plugin endpoints
# Configure WAF to block SQL patterns in POST/GET parameters
🧯 If You Can't Patch
- Implement strict input validation and parameterized queries in custom code
- Restrict database user permissions to minimum required access
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin > Plugins > WooCommerce Product Vendors version. If version is 2.1.78 or lower, site is vulnerable.
Check Version:
wp plugin get woocommerce-product-vendors --field=version
Verify Fix Applied:
Verify plugin version is 2.1.79 or higher in WordPress admin panel.
📡 Detection & Monitoring
Log Indicators:
- Unusual SQL queries in database logs
- Multiple failed login attempts from shop manager accounts
- Unexpected database schema changes
Network Indicators:
- POST requests with SQL patterns to vendor-related endpoints
- Unusual database connection patterns
SIEM Query:
source="web_logs" AND (uri="*vendor*" OR uri="*product-vendor*") AND (query="*SELECT*" OR query="*UNION*" OR query="*INSERT*" OR query="*DELETE*")
🔗 References
- https://patchstack.com/database/vulnerability/woocommerce-product-vendors/wordpress-woocommerce-product-vendors-plugin-2-1-78-shop-manager-sql-injection-vulnerability?_s_id=cve
- https://patchstack.com/database/vulnerability/woocommerce-product-vendors/wordpress-woocommerce-product-vendors-plugin-2-1-78-shop-manager-sql-injection-vulnerability?_s_id=cve