Threat Overview

A high-severity arbitrary file deletion vulnerability in FluentCart (fluent-cart), a WordPress eCommerce plugin marketed as a lighter alternative to legacy store builders, allows attackers with custom-level access to delete critical files anywhere on the underlying web server.

Tracked as CVE-2026-120577 and rated HIGH (CVSS 8.1), the vulnerability affects all versions up to and including 1.6.2. In a live WordPress environment, arbitrary file deletion is not merely a denial-of-service risk—deleting wp-config.php immediately resets the site into an unauthenticated installation state that attackers exploit for full Remote Code Execution (RCE).

Threat Metric Technical Details
Severity Rating HIGH (CVSS 8.1 / 10.0)
Vulnerability Class Path Traversal to Arbitrary File Deletion & RCE (CWE-22 / CWE-73)
Vulnerable Components FluentCart (fluent-cart) versions up to and including 1.6.2 (LocalDriver.php)
Attack Vector Authenticated API request via FileUploadController.php invoking deleteFile()
Target Asset WordPress Root wp-config.php & Host File System
Remediation Update immediately to FluentCart 1.6.3 or higher (Trac changeset 3661075)

The Breakdown: How the Exploit Works

The defect resides in FluentCart’s local filesystem driver at app/Services/FileSystem/Drivers/Local/LocalDriver.php (line 243) and its exposure through app/Http/Controllers/FileUploadController.php. When handling file removal requests routed through app/Http/Routes/api.php, the deleteFile() function fails to canonicalize or restrict the supplied file path to the designated uploads directory.

Because directory traversal sequences (such as ../) are not stripped before the filesystem unlink operation executes, an authenticated user with custom-level access can point the deletion routine outside the plugin’s storage folder and erase any file writable by the PHP web process.


The Operational Risk: What an Attacker Gains

  • Instant Remote Code Execution via Setup Reset: Deleting wp-config.php forces WordPress back into its first-run setup wizard, letting an attacker connect the site to a remote MySQL server and execute arbitrary PHP code.
  • Security Control Neutralization: Attackers can delete root .htaccess access rules or firewall bootstrap files (wordfence-waf.php) before launching secondary attacks.
  • Storefront & Order Disruption: Deleting core theme templates or payment gateway certificates causes immediate revenue loss and checkout downtime.
  • Lateral Exposure on Shared Hosting: Without strict container isolation, path traversal deletion can destroy files belonging to adjacent web properties.

Our Take in Plain English

“In WordPress, the ability to delete a file is virtually identical to taking over the server. Why? Because the entire security boundary of a WordPress website rests on a single text file sitting in the main folder: wp-config.php. The moment an attacker uses a faulty eCommerce plugin to erase that file, WordPress assumes it was just installed for the first time and invites the next visitor on the internet to set up a brand-new database and administrator account. A modern pre-rendered edge architecture has no wp-config.php on the public server and never grants web processes write or delete access to production code.”


The Modern Architectural Remedy

  • Legacy Dynamic WordPress: Grants the live PHP web process read, write, and delete permissions across the application root, where erasing wp-config.php re-opens the unauthenticated setup wizard.
  • Modern Pre-Rendered Edge Architecture: Serves immutable static storefront pages from read-only edge nodes while isolating commerce transactions inside hardened, decoupled backend services.

Immediate Action Items for WordPress Operators

  1. Patch Immediately: Upgrade FluentCart (fluent-cart) to version 1.6.3 or higher across all active storefronts.
  2. Harden wp-config.php Permissions: Restrict ownership and permissions on wp-config.php so the PHP worker process cannot unlink it.
  3. Audit Custom Role Permissions: Review all non-administrator accounts and custom shop roles with access to FluentCart file upload endpoints.
  4. Monitor File Integrity: Check web server logs for unexpected unlink attempts or traversal strings (../) targeting REST API routes.