CVE-2024-1981
📋 TL;DR
CVE-2024-1981 is a critical SQL injection vulnerability in the WPvivid Backup and Migration WordPress plugin that allows unauthenticated attackers to execute arbitrary SQL queries. This enables attackers to extract sensitive data like user credentials, configuration details, and other database contents. All WordPress sites running the vulnerable plugin version are affected.
💻 Affected Systems
- Migration, Backup, Staging – WPvivid plugin for WordPress
📦 What is this software?
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise leading to credential theft, sensitive data exfiltration, privilege escalation, and potential site takeover.
Likely Case
Attackers extract administrative credentials, user data, and configuration information to gain unauthorized access.
If Mitigated
Limited impact with proper input validation, parameterized queries, and database user privilege restrictions.
🎯 Exploit Status
SQL injection via 'table_prefix' parameter requires minimal technical skill to exploit.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Version 0.9.69 or later
Vendor Advisory: https://plugins.trac.wordpress.org/changeset?old_path=%2Fwpvivid-backuprestore%2Ftrunk&old=2667839&new_path=%2Fwpvivid-backuprestore%2Ftrunk&new=2667839
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find WPvivid Backup and Migration plugin. 4. Click 'Update Now' if available. 5. Alternatively, download latest version from WordPress repository and manually update.
🔧 Temporary Workarounds
Disable vulnerable plugin
allTemporarily disable the WPvivid plugin until patched
wp plugin deactivate wpvivid-backuprestore
Web Application Firewall rule
allBlock SQL injection patterns targeting the table_prefix parameter
Add WAF rule: Block requests containing SQL injection patterns in table_prefix parameter
🧯 If You Can't Patch
- Implement strict input validation for all user-supplied parameters
- Restrict database user permissions to minimum required privileges
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → Installed Plugins for WPvivid version
Check Version:
wp plugin get wpvivid-backuprestore --field=version
Verify Fix Applied:
Verify plugin version is 0.9.69 or higher in WordPress admin
📡 Detection & Monitoring
Log Indicators:
- Unusual SQL queries in database logs
- Multiple failed login attempts after SQL injection
- Requests with SQL syntax in table_prefix parameter
Network Indicators:
- HTTP POST requests containing SQL injection patterns
- Unusual database connections from web server
SIEM Query:
source="web_logs" AND (table_prefix AND (SELECT OR UNION OR INSERT OR DELETE))
🔗 References
- https://plugins.trac.wordpress.org/changeset?old_path=%2Fwpvivid-backuprestore%2Ftrunk&old=2667839&new_path=%2Fwpvivid-backuprestore%2Ftrunk&new=2667839
- https://research.hisolutions.com/2024/01/multiple-vulnerabilities-in-wordpress-plugin-wpvivid-backup-and-migration/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ef8bfb38-4f20-4f9f-bb30-a88f3be2d2d3?source=cve
- https://plugins.trac.wordpress.org/changeset?old_path=%2Fwpvivid-backuprestore%2Ftrunk&old=2667839&new_path=%2Fwpvivid-backuprestore%2Ftrunk&new=2667839
- https://research.hisolutions.com/2024/01/multiple-vulnerabilities-in-wordpress-plugin-wpvivid-backup-and-migration/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ef8bfb38-4f20-4f9f-bb30-a88f3be2d2d3?source=cve