CVE-2025-46458

8.2 HIGH

📋 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

Products:
  • WordPress occupancyplan plugin
Versions: n/a through 1.0.3.0
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires authenticated administrator user to be tricked into visiting malicious page while logged in.

⚠️ 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.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. 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.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

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

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/occupancyplan/vulnerability/wordpress-occupancyplan-plugin-1-0-3-0-csrf-to-sql-injection-vulnerability?_s_id=cve

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

all

Add CSRF tokens to all occupancyplan forms and validate them server-side.

Plugin Deactivation

linux

Temporarily 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*")

🔗 References

📤 Share & Export