Description
The WP-BusinessDirectory plugin for WordPress is vulnerable to Unauthenticated Arbitrary File Deletion in versions up to and including 4.0.1. This is due to insufficient path validation in the remove() method of the JBusinessDirectoryControllerUpload class. The task=upload.remove endpoint is accessible without authentication via the plugin's frontend routing system. The _filename parameter is accepted with RAW filter (no sanitization), and the helper function makePathFile() only normalizes directory separator characters without stripping path traversal sequences (../). When combined with the _path_type=2 parameter, which sets the base directory to the plugin's site folder, an attacker can supply a _filename value containing ../ sequences to traverse outside the plugin directory and call PHP's unlink() on arbitrary files — including wp-config.php, wp-config-backup.php, or other critical server files accessible to the web server process. This makes it possible for unauthenticated attackers to delete arbitrary files on the server.
Published: 2026-07-01
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The WP‑BusinessDirectory WordPress plugin allows unauthenticated users to delete files on the web server. The flaw originates from missing validation of the _filename parameter in the upload.remove endpoint; the parameter is accepted raw, and the internal helper does not strip ../ path traversal. When the caller also supplies _path_type=2, the function resolves to the plugin’s site directory, enabling traversal beyond it and leading the PHP unlink() function to remove any file readable by the web process. An attacker could therefore target critical files such as wp-config.php, thus destroying site configuration or exposing sensitive data. This weakness, classified as CWE‑73, allows drastic integrity loss and potential service disruption. The impact is purely destructive and requires no further authentication.

Affected Systems

All installations of the WP‑BusinessDirectory plugin from cmsjunkie, up to and including major version 4.0.1, are affected. The vulnerability exists in the upload.php controller responsible for handling file uploads and deletes. No other plugin versions are impacted, and upgrades beyond 4.0.1 automatically include the fix.

Risk and Exploitability

The CVSS score of 9.1 classifies the vulnerability as critical. The EPSS score is unavailable, but the absence of a KEV listing does not mitigate the high severity. An attacker only needs to send an HTTP request to the task=upload.remove endpoint with the specially crafted _filename and _path_type parameters; no user authentication or privileges are required. The lack of input sanitization combined with PHP's native unlink operation makes exploitation straightforward through a web browser or automation tools.

Generated by OpenCVE AI on July 1, 2026 at 12:57 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor‑issued patch that updates WP‑BusinessDirectory to version 4.1 or later.
  • Block unauthenticated access to the upload.remove endpoint by configuring web server rules or using a security plugin.
  • Restrict file permissions so that the web server process cannot delete critical files outside the plugin directory.
  • Consider disabling the upload functionality entirely if file management is not needed.

Generated by OpenCVE AI on July 1, 2026 at 12:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Cmsjunkie
Cmsjunkie wp-businessdirectory – Business Directory Plugin For Wordpress
Wordpress
Wordpress wordpress
Vendors & Products Cmsjunkie
Cmsjunkie wp-businessdirectory – Business Directory Plugin For Wordpress
Wordpress
Wordpress wordpress

Wed, 01 Jul 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 01 Jul 2026 05:00:00 +0000

Type Values Removed Values Added
Description The WP-BusinessDirectory plugin for WordPress is vulnerable to Unauthenticated Arbitrary File Deletion in versions up to and including 4.0.1. This is due to insufficient path validation in the remove() method of the JBusinessDirectoryControllerUpload class. The task=upload.remove endpoint is accessible without authentication via the plugin's frontend routing system. The _filename parameter is accepted with RAW filter (no sanitization), and the helper function makePathFile() only normalizes directory separator characters without stripping path traversal sequences (../). When combined with the _path_type=2 parameter, which sets the base directory to the plugin's site folder, an attacker can supply a _filename value containing ../ sequences to traverse outside the plugin directory and call PHP's unlink() on arbitrary files — including wp-config.php, wp-config-backup.php, or other critical server files accessible to the web server process. This makes it possible for unauthenticated attackers to delete arbitrary files on the server.
Title WP-BusinessDirectory <= 4.0.1 - Unauthenticated Arbitrary File Deletion via Path Traversal via '_filename' Parameter
Weaknesses CWE-73
References
Metrics cvssV3_1

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


Subscriptions

Cmsjunkie Wp-businessdirectory – Business Directory Plugin For Wordpress
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-01T10:42:10.837Z

Reserved: 2026-04-10T13:34:33.261Z

Link: CVE-2026-6070

cve-icon Vulnrichment

Updated: 2026-07-01T10:33:35.544Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-06T22:48:38Z

Weaknesses
  • CWE-73

    External Control of File Name or Path