Description
The Prevent Direct Access – Protect WordPress Files plugin for WordPress is vulnerable to unauthorized access of protected files due to insufficient token validation in the `get_advance_file_by_url()` method in all versions up to, and including, 2.8.8.8 The method uses a SQL `LIKE` operator for token lookup without escaping wildcard characters via `$wpdb->esc_like()`. This makes it possible for unauthenticated attackers to bypass the private token requirement by supplying SQL wildcard characters (such as `%`) as the token value, matching any record in the plugin's file table and downloading any protected file.
Published: 2026-08-13
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Prevent Direct Access – Protect WordPress Files plugin permits an attacker to retrieve any file that the plugin protects. The vulnerability is caused by the get_advance_file_by_url() method performing a SQL LIKE comparison against an unescaped token. An attacker can supply a wildcard character such as % as the token, which matches every record in the plugin’s file table and yields the content of arbitrary protected files. This flaw compromises the confidentiality of the protected data and could allow further exploitation, for example, by providing the attacker with application assets or private data.

Affected Systems

Any WordPress installation running the Prevent Direct Access – Protect WordPress Files plugin version 2.8.8.8 or earlier requires attention. The plugin is distributed by buildwps. Sites that rely on this plugin to guard PHP, upload, or template files are at risk.

Risk and Exploitability

The CVSS score of 5.3 marks the issue as a moderate-security bug. EPSS is not available, so the current quantitative likelihood of exploitation cannot be derived, but the flaw requires only unauthenticated access and merely the ability to request a protected file URL with a wildcard token. The attack does not require elevated privileges and can be performed via the web browser or automated scripts. The plugin is not listed in the CISA KEV catalog, indicating no documented public exploitation as of the latest data.

Generated by OpenCVE AI on August 13, 2026 at 06:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Prevent Direct Access plugin to the latest released version which addresses the token validation flaw
  • Configure the web server or use .htaccess to deny direct access to the plugin’s protected file directories and prevent arbitrary file retrieval
  • Restrict the file download functionality to users with appropriate permission roles via plugin settings or custom code

Generated by OpenCVE AI on August 13, 2026 at 06:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Buildwps
Buildwps prevent Direct Access – Protect Wordpress Files
Wordpress
Wordpress wordpress
Vendors & Products Buildwps
Buildwps prevent Direct Access – Protect Wordpress Files
Wordpress
Wordpress wordpress

Thu, 13 Aug 2026 05:45:00 +0000

Type Values Removed Values Added
Description The Prevent Direct Access – Protect WordPress Files plugin for WordPress is vulnerable to unauthorized access of protected files due to insufficient token validation in the `get_advance_file_by_url()` method in all versions up to, and including, 2.8.8.8 The method uses a SQL `LIKE` operator for token lookup without escaping wildcard characters via `$wpdb->esc_like()`. This makes it possible for unauthenticated attackers to bypass the private token requirement by supplying SQL wildcard characters (such as `%`) as the token value, matching any record in the plugin's file table and downloading any protected file.
Title Prevent Direct Access – Protect WordPress Files <= 2.8.8.8 - Unauthenticated Protected File Access
Weaknesses CWE-285
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Subscriptions

Buildwps Prevent Direct Access – Protect Wordpress Files
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-08-13T13:46:55.932Z

Reserved: 2026-03-09T14:22:47.517Z

Link: CVE-2026-3835

cve-icon Vulnrichment

Updated: 2026-08-13T13:46:52.393Z

cve-icon NVD

Status : Deferred

Published: 2026-08-13T06:17:38.353

Modified: 2026-08-14T19:09:56.813

Link: CVE-2026-3835

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T09:47:18Z

Weaknesses