CVE-2025-39402

9.9 CRITICAL

📋 TL;DR

This vulnerability allows attackers to upload arbitrary files, including web shells, to WordPress servers running the vulnerable WPAMS plugin. Attackers can gain full control of affected websites. All WordPress sites using WPAMS plugin versions up to 44.0 (17-08-2023) are affected.

💻 Affected Systems

Products:
  • WordPress WPAMS (Apartment Management System) plugin
Versions: All versions up to and including 44.0 (17-08-2023)
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all WordPress installations with vulnerable plugin version, regardless of other security measures

⚠️ 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 server compromise leading to data theft, ransomware deployment, and use as attack platform

🟠

Likely Case

Website defacement, data exfiltration, and backdoor installation for persistent access

🟢

If Mitigated

Limited impact if file uploads are restricted via web application firewall or server configuration

🌐 Internet-Facing: HIGH - WordPress sites are typically internet-facing and vulnerable to unauthenticated attacks
🏢 Internal Only: MEDIUM - Internal WordPress sites could be compromised via phishing or internal threats

🎯 Exploit Status

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

Simple file upload exploitation with publicly available proof-of-concept

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 44.0 (17-08-2023)

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/apartment-management/vulnerability/wordpress-wpams-plugin-44-0-17-08-2023-arbitrary-file-upload-vulnerability-2?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Navigate to Plugins → Installed Plugins
3. Find WPAMS plugin
4. Click 'Update Now' if update available
5. If no update, deactivate and remove plugin immediately

🔧 Temporary Workarounds

Web Application Firewall Rule

all

Block file uploads to vulnerable endpoints

WAF rule: Block POST requests containing file uploads to /wp-content/plugins/wpams/

Server File Permission Restriction

linux

Remove write permissions from wp-content/uploads directory

chmod -R 755 /path/to/wp-content/uploads/
chown -R www-data:www-data /path/to/wp-content/uploads/

🧯 If You Can't Patch

  • Immediately deactivate and remove the WPAMS plugin from all WordPress installations
  • Implement strict file upload validation and monitoring for all WordPress file upload functionality

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for WPAMS version ≤44.0

Check Version:

wp plugin list --name=wpams --field=version (if WP-CLI installed)

Verify Fix Applied:

Confirm WPAMS plugin is either removed or updated to version >44.0

📡 Detection & Monitoring

Log Indicators:

  • POST requests to /wp-content/plugins/wpams/ with file uploads
  • Unusual file creations in wp-content/uploads/

Network Indicators:

  • HTTP POST requests with file uploads to WPAMS endpoints
  • Outbound connections from web server to unknown IPs

SIEM Query:

source="web_server" AND (uri_path="/wp-content/plugins/wpams/" AND method="POST" AND content_type="multipart/form-data")

🔗 References

📤 Share & Export