CVE-2026-6070

WP-BusinessDirectory <= 4.0.1 - Unauthenticated Arbitrary File Deletion via Path Traversal via '_filename' Parameter

Published Jul 1, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Jul 1, 2026, 10:42 AM
Reserved
Apr 10, 2026, 1:34 PM
Status
Deferred
Published
Jul 1, 2026, 5:16 AM
Modified
Jul 1, 2026, 1:56 PM