CVE-2023-36677
📋 TL;DR
This SQL injection vulnerability in the Smartypants SP Project & Document Manager WordPress plugin allows attackers to execute arbitrary SQL commands on the database. It affects all WordPress sites running vulnerable versions of this plugin, potentially compromising sensitive data.
💻 Affected Systems
- Smartypants SP Project & Document Manager WordPress Plugin
📦 What is this software?
Sp Project \& Document Manager by Smartypantsplugins
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise including data theft, modification, or deletion; potential privilege escalation to administrative access; possible remote code execution if database permissions allow.
Likely Case
Extraction of sensitive data from WordPress database including user credentials, personal information, and plugin-specific documents; potential site defacement or content manipulation.
If Mitigated
Limited impact with proper input validation and parameterized queries; database permissions restricting write access would prevent data modification.
🎯 Exploit Status
SQL injection vulnerabilities in WordPress plugins are frequently weaponized; public exploit details available through security advisories.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 4.68 or later
Vendor Advisory: https://patchstack.com/database/vulnerability/sp-client-document-manager/wordpress-sp-project-document-manager-plugin-4-67-sql-injection
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'SP Project & Document Manager'. 4. Click 'Update Now' if available. 5. Alternatively, download version 4.68+ from WordPress repository and manually update.
🔧 Temporary Workarounds
Disable Plugin
allTemporarily disable the vulnerable plugin until patched
wp plugin deactivate sp-client-document-manager
Web Application Firewall
allDeploy WAF rules to block SQL injection patterns
🧯 If You Can't Patch
- Implement strict input validation and sanitization for all user inputs
- Apply principle of least privilege to database user accounts
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → SP Project & Document Manager version
Check Version:
wp plugin get sp-client-document-manager --field=version
Verify Fix Applied:
Confirm plugin version is 4.68 or higher in WordPress admin
📡 Detection & Monitoring
Log Indicators:
- Unusual database queries in WordPress debug logs
- Multiple failed login attempts from single IP
- Unexpected SQL syntax in request logs
Network Indicators:
- HTTP requests containing SQL keywords (SELECT, UNION, etc.) to plugin endpoints
- Unusual traffic patterns to /wp-content/plugins/sp-client-document-manager/
SIEM Query:
source="wordpress.log" AND "sp-client-document-manager" AND (SELECT OR UNION OR INSERT OR DELETE)