CVE-2025-7667

8.1 HIGH

📋 TL;DR

This CSRF vulnerability in the WordPress Restrict File Access plugin allows unauthenticated attackers to delete arbitrary files on the server by tricking administrators into clicking malicious links. Successful exploitation can lead to remote code execution by deleting critical files like wp-config.php. All WordPress sites using this plugin up to version 1.1.2 are affected.

💻 Affected Systems

Products:
  • WordPress Restrict File Access plugin
Versions: All versions up to and including 1.1.2
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin active

⚠️ 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 site compromise via remote code execution leading to data theft, defacement, or malware installation

🟠

Likely Case

Site disruption or data loss from deletion of important files, potentially requiring full restoration from backups

🟢

If Mitigated

No impact if proper CSRF protections are implemented or plugin is updated/disabled

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires social engineering to trick authenticated administrators into clicking malicious links

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.1.3 or later

Vendor Advisory: https://plugins.trac.wordpress.org/browser/restrict-file-access/trunk/admin/admin.php#L78

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Restrict File Access' and click 'Update Now' if available. 4. If no update is available, deactivate and delete the plugin immediately.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily deactivate the Restrict File Access plugin until patched version is available

wp plugin deactivate restrict-file-access

Add CSRF protection middleware

all

Implement custom WordPress filter to add nonce validation to all admin actions

🧯 If You Can't Patch

  • Remove plugin entirely and use alternative file restriction solutions
  • Implement strict access controls and monitoring for file deletion operations

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Restrict File Access version number

Check Version:

wp plugin get restrict-file-access --field=version

Verify Fix Applied:

Verify plugin version is 1.1.3 or higher and check that nonce validation is present in admin.php line 78

📡 Detection & Monitoring

Log Indicators:

  • Unexpected file deletion events in WordPress or web server logs
  • Multiple failed admin login attempts followed by file deletion

Network Indicators:

  • HTTP POST requests to /wp-admin/admin.php?page=restrict-file-access without proper referrer headers

SIEM Query:

source="wordpress.log" AND "restrict-file-access" AND "DELETE" AND NOT user_agent="WordPress"

🔗 References

📤 Share & Export