# CVE-2026-77693: Order Tip for WooCommerce < 1.6.0 - Shop Manager+ Arbitrary File Deletion via delete_exported_csv_file_ajax

The Markdown version of <https://upatch.dev/cve/CVE-2026-77693>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-77693 is rated High 8.7 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:H). It affects Order Tip for WooCommerce and was published on 26 Aug 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.5%: the estimated chance it is exploited in the next 30 days, as of 25 Nov 2026. The upatch `cve-2026-77693-unlink-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-77693, published on 26 August 2026, is an arbitrary file deletion vulnerability (CWE-73) in the Order Tip for WooCommerce (`order-tip-woo`) WordPress plugin in versions before 1.6.0. In `admin/controllers/reports.class.php`, `WOO_Order_Tip_Admin_Reports::__construct()` registers `delete_exported_csv_file_ajax` on both `wp_ajax_delete_exported_csv_file_ajax` and `wp_ajax_nopriv_delete_exported_csv_file_ajax`. The handler `delete_exported_csv_file_ajax()` verifies the time-based nonce `'delete-exported-file-' . wp_date('Y-m-d H')`, reads `$_POST['filePath']` with `sanitize_text_field( wp_unslash( $_POST['filePath'] ) )`, and passes `$file_path` directly to `$wp_filesystem->delete( $file_path )` without checking user capabilities or restricting the path to the `wp-content/uploads/order-tip-woo` export directory. An attacker with access to the nonce (or predicting the hourly `wp_date('Y-m-d H')` nonce action) can delete arbitrary files on the server, such as `wp-config.php`. Version 1.6.0 fixed the issue by refactoring CSV export in `export_tips_to_csv_ajax()` to return CSV content directly for client-side blob generation and removing `delete_exported_csv_file_ajax()` entirely.

### Official description

The Order Tip for WooCommerce WordPress plugin before 1.6.0 does not check the capability of the user requesting a file deletion, nor does it restrict which path may be deleted, allowing users with the Shop Manager role and above to delete arbitrary files on the server, which could lead to the site being taken over.

## What the upatch does

The BPF LSM program attaches to `lsm/inode_unlink` and inspects unlink attempts by tasks whose executable name starts with `php` (such as `php`, `php8.3`, `php-fpm8.3`, and `php-cgi`):

| Hook               | Refused                                                                                                                                     |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `lsm/inode_unlink` | Unlinking any file by a `php*` executable unless its filename ends in `.csv` and its parent directory (`d_parent`) is named `order-tip-woo` |

When the kernel resolves the path passed to `unlink()`, any `..` traversal components are already resolved in the VFS before `security_inode_unlink()` runs, so `dentry` and `dentry->d_parent` reflect the real target file and directory on disk. Legitimate temporary CSV exports created by `export_tips_to_csv_ajax()` at `wp-content/uploads/order-tip-woo/order-tip-woo-export-<timestamp>.csv` have parent directory `order-tip-woo` and a `.csv` suffix, so their deletion in `delete_exported_csv_file_ajax()` is allowed. Any attempt to delete files outside `order-tip-woo` (such as `wp-config.php`) or non-CSV files is refused with `-EPERM`. The `refused` per-CPU array map counts refused unlink attempts at key 0.

The policy: [`cve-2026-77693-unlink-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-77693), 93 lines of BPF C attached at `lsm/inode_unlink`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- While the upatch is loaded, PHP processes (`php*`) cannot unlink files outside an `order-tip-woo` directory or files that do not end in `.csv`. WordPress media deletions, plugin/core updates, and temporary file unlinks performed directly by PHP fail with `EPERM` until `order-tip-woo` is upgraded to 1.6.0 or newer and the upatch is unloaded.
- Generating and deleting exported tip report CSV files inside `wp-content/uploads/order-tip-woo/` continues to work normally.
- Non-PHP processes (including root shells, `sshd`, package managers, and system utilities) are unaffected.

## Preemption model and cost

The program uses a single `BPF_MAP_TYPE_PERCPU_ARRAY` counter updated with `__sync_fetch_and_add` only when an unlink is refused, making it safe under every kernel preemption model including `PREEMPT_LAZY`, `PREEMPT_DYNAMIC`, preemptible RCU, and `PREEMPT_RT`. For non-PHP processes, each `inode_unlink` call exits after reading the 3-byte prefix of the current task's executable name. For PHP processes, it checks only the 4-byte suffix of `dentry->d_name` and the 13-byte name of `dentry->d_parent`.

## Affected versions

- Application: Order Tip for WooCommerce (`order-tip-woo`) WordPress plugin versions before 1.6.0 (CSV AJAX deletion introduced in 1.5.0, vulnerable through 1.5.6); fixed in 1.6.0.
- Kernels: any Linux kernel supported by shirudo with BPF LSM (`lsm/inode_unlink`) and BTF enabled.

## How it was tested

On Order Tip for WooCommerce (order-tip-woo) 1.5.6, the loaded upatch blocked arbitrary file deletion in delete_exported_csv_file_ajax() outside order-tip-woo while allowing legitimate CSV export deletion inside order-tip-woo.

- **Tested:** 25 Nov 2026
- **Target:** Order Tip for WooCommerce (order-tip-woo) 1.5.6 on PHP CLI built-in web server, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Distribution:** Ubuntu 26.04

### Results

| State           | Arbitrary file unlink outside order-tip-woo blocked | Exported CSV unlink inside order-tip-woo works |
| --------------- | --------------------------------------------------- | ---------------------------------------------- |
| Before loading  | no                                                  | yes                                            |
| Upatch loaded   | yes                                                 | yes                                            |
| After unloading | no                                                  | yes                                            |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-77693
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-77693-1.0.0.bee oci://<registry>/<namespace>/cve-2026-77693 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-77693-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-77693 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-77693)
- [WPScan vulnerability advisory 630de65a-d3ca-4690-a21a-985616ebfad1](https://wpscan.com/vulnerability/630de65a-d3ca-4690-a21a-985616ebfad1/)
- [Order Tip for WooCommerce 1.5.6 vulnerable `admin/controllers/reports.class.php` (WordPress Plugin SVN)](https://plugins.svn.wordpress.org/order-tip-woo/tags/1.5.6/admin/controllers/reports.class.php)
- [Order Tip for WooCommerce 1.6.0 fixed `admin/controllers/reports.class.php` (WordPress Plugin SVN)](https://plugins.svn.wordpress.org/order-tip-woo/tags/1.6.0/admin/controllers/reports.class.php)
- [Order Tip for WooCommerce 1.5.6 release archive](https://downloads.wordpress.org/plugin/order-tip-woo.1.5.6.zip)

### Links

- [CVE-2026-77693 on upatch.dev](https://upatch.dev/cve/CVE-2026-77693) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-77693)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-77693)
- [CWE-73](https://cwe.mitre.org/data/definitions/73.html)
- Upatch source: [upatches/cve-2026-77693](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-77693)

### More references from NVD (1)

- [wpscan.com](https://wpscan.com/vulnerability/630de65a-d3ca-4690-a21a-985616ebfad1/)
