Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-7667: CWE-352 Cross-Site Request Forgery (CSRF) in josxha Restrict File Access

0
High
VulnerabilityCVE-2025-7667cvecve-2025-7667cwe-352
Published: Tue Jul 15 2025 (07/15/2025, 11:20:04 UTC)
Source: CVE Database V5
Vendor/Project: josxha
Product: Restrict File Access

Description

The Restrict File Access plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.1.2. This is due to missing or incorrect nonce validation on the 'restrict-file-access' page. This makes it possible for unauthenticated attackers to to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php), via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 16:26:14 UTC

Technical Analysis

CVE-2025-7667 is a Cross-Site Request Forgery (CSRF) vulnerability identified in the josxha Restrict File Access plugin for WordPress, affecting all versions up to and including 1.1.2. The vulnerability stems from missing or incorrect nonce validation on the plugin's 'restrict-file-access' administrative page. Nonces in WordPress are security tokens used to verify that requests originate from legitimate users and prevent CSRF attacks. Without proper nonce checks, attackers can craft malicious requests that, when executed by an authenticated administrator (via clicking a link or visiting a crafted webpage), cause the deletion of arbitrary files on the server. This deletion capability is particularly dangerous because removing critical files such as wp-config.php can disrupt site functionality and enable remote code execution (RCE) by allowing attackers to upload or execute malicious code. The vulnerability requires no privileges for the attacker but does require user interaction from an admin-level user, making social engineering a key exploitation vector. The CVSS v3.1 base score is 8.1, reflecting high impact on integrity and availability, with network attack vector, low attack complexity, no privileges required, and user interaction needed. Although no public exploits are currently known, the potential for severe damage to WordPress sites using this plugin is significant. The plugin is widely used in WordPress environments to restrict file access, making many websites potentially vulnerable. The lack of available patches at the time of publication increases the urgency for mitigation.

Potential Impact

The impact of CVE-2025-7667 is substantial for organizations running WordPress sites with the josxha Restrict File Access plugin. Successful exploitation allows attackers to delete arbitrary files on the web server, which can lead to site downtime, data loss, and compromise of site integrity. Deletion of critical configuration files like wp-config.php can cause site outages and facilitate remote code execution, enabling attackers to gain persistent control over the server. This can lead to further attacks such as data theft, website defacement, malware distribution, or use of the compromised server in botnets. The requirement for user interaction (an admin clicking a malicious link) means social engineering campaigns could be used to target site administrators. Given WordPress's widespread use globally, this vulnerability could affect a large number of websites, including e-commerce, government, and enterprise sites, potentially disrupting business operations and damaging reputations. The absence of known exploits currently provides a window for proactive defense, but the high severity score indicates that exploitation would have serious consequences.

Mitigation Recommendations

To mitigate CVE-2025-7667, organizations should immediately verify if the josxha Restrict File Access plugin is installed and identify the version in use. Since no patches are currently available, temporary mitigations include: 1) Restricting administrative access to trusted networks or VPNs to reduce exposure to CSRF attacks. 2) Implementing Web Application Firewall (WAF) rules to detect and block suspicious requests targeting the 'restrict-file-access' page, especially those lacking valid nonces or originating from untrusted sources. 3) Educating site administrators about the risk of clicking untrusted links and encouraging the use of multi-factor authentication to reduce the risk of account compromise. 4) Monitoring server logs for unusual file deletion activities or access patterns. 5) Considering disabling or removing the plugin if it is not essential until a secure version is released. Once a patch becomes available, promptly apply it and verify nonce validation is correctly implemented. Additionally, regular backups of critical files should be maintained to enable recovery in case of successful exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-07-14T21:43:01.363Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68763bfda83201eaacce4b57

Added to database: 7/15/2025, 11:31:09 AM

Last enriched: 2/26/2026, 4:26:14 PM

Last updated: 3/23/2026, 7:01:58 PM

Views: 173

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses