CVE-2026-77693
Order Tip for WooCommerce < 1.6.0 - Shop Manager+ Arbitrary File Deletion via delete_exported_csv_file_ajax
Refuses arbitrary file deletion outside the order-tip-woo upload directory by PHP processes to mitigate CVE-2026-77693.
High 8.7Vetted
EPSS 0.5%: the estimated chance this CVE is exploited in the next 30 days, as of 25 Nov 2026.
At a glance
CVE-2026-77693 is a high (CVSS 8.7) vulnerability in Order Tip for WooCommerce, published 26 August 2026. A vetted upatch, cve-2026-77693-unlink-block, blocks it on running Linux machines with shirudo until Order Tip for WooCommerce is upgraded.
- Severity
- High 8.7 CVSS 3.1
- Chance of exploitation
- 0.5% in the next 30 days (EPSS, 25 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-73
- Affected software
- Order Tip for WooCommerce
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
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.
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.
Sources
- CVE-2026-77693 record (CVE API)
- WPScan vulnerability advisory 630de65a-d3ca-4690-a21a-985616ebfad1
- Order Tip for WooCommerce 1.5.6 vulnerable
admin/controllers/reports.class.php(WordPress Plugin SVN) - Order Tip for WooCommerce 1.6.0 fixed
admin/controllers/reports.class.php(WordPress Plugin SVN) - Order Tip for WooCommerce 1.5.6 release archive
More references from NVD (1)
Mitigation
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.
Side effects
- While the upatch is loaded, PHP processes (
php*) cannot unlink files outside anorder-tip-woodirectory or files that do not end in.csv. WordPress media deletions, plugin/core updates, and temporary file unlinks performed directly by PHP fail withEPERMuntilorder-tip-woois 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.
The policy
93 lines of BPF C, attached at lsm/inode_unlink.
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#define EPERM 1
char _license[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
__uint(max_entries, 1);
__type(key, __u32);
__type(value, __u64);
} refused SEC(".maps");
static __always_inline void count_refused(void)
{
__u32 key = 0;
__u64 *value = bpf_map_lookup_elem(&refused, &key);
if (value)
__sync_fetch_and_add(value, 1);
}
static __always_inline bool is_php_process(void)
{
struct task_struct *task = bpf_get_current_task_btf();
const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
const unsigned char *name = BPF_CORE_READ(exe, d_name.name);
__u32 len = BPF_CORE_READ(exe, d_name.len);
char buf[4] = {};
if (!name || len < 3)
return false;
if (bpf_probe_read_kernel(buf, 3, name))
return false;
return buf[0] == 'p' && buf[1] == 'h' && buf[2] == 'p';
}
static __always_inline bool is_order_tip_woo_dir(const struct dentry *dentry)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
__u32 len = BPF_CORE_READ(dentry, d_name.len);
char buf[14] = {};
if (!name || len != 13)
return false;
if (bpf_probe_read_kernel(buf, 13, name))
return false;
return buf[0] == 'o' && buf[1] == 'r' && buf[2] == 'd' &&
buf[3] == 'e' && buf[4] == 'r' && buf[5] == '-' &&
buf[6] == 't' && buf[7] == 'i' && buf[8] == 'p' &&
buf[9] == '-' && buf[10] == 'w' && buf[11] == 'o' &&
buf[12] == 'o';
}
static __always_inline bool ends_with_csv(const struct dentry *dentry)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
__u32 len = BPF_CORE_READ(dentry, d_name.len);
char tail[4] = {};
if (!name || len < 5 || len > 255)
return false;
if (bpf_probe_read_kernel(tail, sizeof(tail), name + len - 4))
return false;
return tail[0] == '.' && tail[1] == 'c' && tail[2] == 's' &&
tail[3] == 'v';
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/inode_unlink")
int BPF_PROG(cve_2026_77693_unlink_block, struct inode *dir,
struct dentry *dentry, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!is_php_process())
return 0;
if (ends_with_csv(dentry) &&
is_order_tip_woo_dir(BPF_CORE_READ(dentry, d_parent)))
return 0;
count_refused();
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-77693"
description = "Refuses arbitrary file deletion outside the order-tip-woo upload directory by PHP processes to mitigate CVE-2026-77693"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-77693-unlink-block.bpf.c"
[upatches.tree]
id = "cve-2026-77693-unlink-block"
fixes = ["CVE-2026-77693"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 26 Aug 2026CVECVE published
- 25 Nov 2026Pull requestPull request #97 openedAdd CVE-2026-77693: Refuses arbitrary file deletion outside the order-tip-woo upload directory byromanlab
- 25 Nov 2026CICheck entriespassed
- 25 Nov 2026CIingestpassed
- 25 Nov 2026CICompile with clang 23passed
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
- 25 Nov 2026MergeMerged #97romanlab
No human review is recorded on GitHub for this upatch yet.
Evidence
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
| 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 |
tools-test.log Output of tools/test --setup showing delete_exported_csv_file_ajax() unlinking the outside probe before and after, and being blocked while the upatch is loaded.
tools/test --setup, 2026-11-25T16:06:02Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-77693 setup done OTW_URL=http://127.0.0.1:18080/index.php OTW_TOP=/opt/upatch-payload/cve-2026-77693 before reached delete_exported_csv_file_ajax unlinked probe-7a52ab351040.txt outside order-tip-woo loaded blocked delete_exported_csv_file_ajax could not unlink probe-58a3fc164c9c.txt outside order-tip-woo while legitimate CSV deletion succeeded after reached delete_exported_csv_file_ajax unlinked probe-5f8c4aa3aa77.txt outside order-tip-woo PASS: reached before, blocked while loaded, reached again after
Use it
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.
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-77693shirudo 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>