CVE-2025-46458
📋 TL;DR
This vulnerability in the occupancyplan WordPress plugin allows attackers to perform SQL injection via CSRF attacks. Attackers can trick authenticated administrators into executing malicious SQL queries, potentially compromising the database. All WordPress sites using occupancyplan versions up to 1.0.3.0 are affected.
💻 Affected Systems
- WordPress occupancyplan plugin
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise including data theft, data manipulation, privilege escalation, and potential remote code execution via database functions.
Likely Case
Unauthorized data access, data modification, or database corruption affecting occupancyplan functionality.
If Mitigated
Limited impact with proper CSRF protections and database user privilege restrictions.
🎯 Exploit Status
Exploitation requires social engineering to trick authenticated users but technical complexity is low.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.0.3.1 or later
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find occupancyplan plugin. 4. Click 'Update Now' if update available. 5. If no update available, deactivate and delete plugin, then install latest version from WordPress repository.
🔧 Temporary Workarounds
CSRF Protection Implementation
allAdd CSRF tokens to all occupancyplan forms and validate them server-side.
Plugin Deactivation
linuxTemporarily disable the occupancyplan plugin until patched.
wp plugin deactivate occupancyplan
🧯 If You Can't Patch
- Implement web application firewall (WAF) rules to block SQL injection patterns
- Restrict database user permissions to SELECT only for occupancyplan database user
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Installed Plugins for occupancyplan version. If version is 1.0.3.0 or earlier, you are vulnerable.
Check Version:
wp plugin get occupancyplan --field=version
Verify Fix Applied:
Verify occupancyplan plugin version is 1.0.3.1 or later in WordPress admin panel.
📡 Detection & Monitoring
Log Indicators:
- Unusual SQL queries in database logs
- Multiple failed login attempts followed by successful admin login
- Unexpected database schema changes
Network Indicators:
- HTTP POST requests to occupancyplan endpoints with SQL patterns in parameters
- Requests from unexpected referrers to admin endpoints
SIEM Query:
source="web_server" AND (uri="*/wp-admin/admin-ajax.php*" OR uri="*/wp-content/plugins/occupancyplan/*") AND (query="*SELECT*" OR query="*UNION*" OR query="*INSERT*" OR query="*UPDATE*" OR query="*DELETE*")