CVE-2026-96568 vulnerability and BitFire protection

How BitFire Blocks CVE-2026-96568: Restaurant Menu Stored XSS

WordPress 漏洞研究

An unauthenticated checkout field stores JavaScript that executes in admin browsers; BitFire FREE's WAF blocks the malicious POST before WordPress stores it.

Unauthenticated High severity – CVSS 7.2 Script execution in admin sessions Stored cross-site scripting
BitFire·漏洞通报研究发表
咨询CVE-2026-96568
组件Restaurant Menu and Food Ordering
相关来源classes/models/shop/class-purchase.php (purchase_form_validate_phone) and classes/models/shop/class-order.php (Order::column_order_title)
执行摘要

WordPress 管理员需要了解什么

Restaurant Menu and Food Ordering 2.4.14 lets an unauthenticated visitor plant persistent JavaScript in a restaurant's WordPress database through the checkout form. The plugin accepts a phone_number field, strips only HTML tags, stores it on the order and customer records, and later prints it unescaped inside the admin Orders and Customers tables. Any administrator or shop manager who opens those screens executes the payload with full session privileges. BitFire FREE's WAF stops this attack at the front door: it inspects the checkout POST body, detects the injected script content, and blocks the request before WordPress stores anything. Version 2.4.15 closes the flaw; BitFire blocks it on unpatched sites.

一目了然

主要事实

  • Unauthenticated AJAX (mprm_process_checkout) and front-end checkout (mprm_purchase) endpoints accept the phone_number value with no nonce or capability check.
  • sanitize_text_field strips tags only; quote characters and entity-encoded text survive and are stored on order meta and customer records.
  • Order::column_order_title() and the Customers list telephone column echo the stored value unescaped, running attacker script in admin browsers (S:C, C:L/I:L).
  • Version 2.4.15 adds a strict phone allowlist (/[^0-9 +().-]/) plus esc_attr/esc_html/esc_url output escaping at every affected sink.
  • BitFire FREE's WAF cross-site scripting inspection blocks the malicious checkout POST before WordPress stores anything — behavior-based protection, no CVE-specific virtual patch required.
  • Sites that ran 2.4.14 or earlier should run BitFire Threat Hunter to rule out backdoor admins, database triggers, and droppers.
01
漏洞概述

了解曝光

WordPress 网站受影响的组件、攻击路径和实际风险。

受影响的组件Restaurant Menu and Food Ordering
潜在影响范围2,000安装
攻击技术stored cross-site scripting
已发表2026-09-24
BitFire's WAF reads every checkout submission before WordPress does — the injected script that powers CVE-2026-96568 is blocked at the request line, never stored, and never rendered in your admin screens.
02
技术分析

该漏洞如何发挥作用

研究详细信息、受影响的版本、利用行为和补救指南。

How CVE-2026-96568 Works

Both checkout paths — the admin-ajax.php action mprm_process_checkout and the front-end mprm_purchase form — accept submissions from logged-out visitors, and the 2.4.14 handler checks neither a nonce nor a capability. The submitted phone_number value passes through sanitize_text_field, which strips tags but leaves quote characters and entity-encoded text intact. The value is saved to the order's _mprm_order_phone_number meta and the customer record's telephone field. When an administrator opens the Orders or Customers list table, Order::column_order_title() and the customers report drop that stored value straight into HTML — an href attribute and cell text with no escaping. The stored script then runs in the admin's browser under the admin's session, a scope change consistent with the CVSS:3.1 vector behind its 7.2 score.

BitFire FREE's WAF Stops the Injection at Delivery

The exploit lives or dies at delivery: the malicious content must arrive inside the phone_number field of a checkout POST. BitFire FREE's Web Application Firewall inspects exactly that — form data and POST bodies — before WordPress runs any plugin code. Its cross-site scripting detection matches the injected script payload in the request and blocks it on the spot, so nothing hostile is stored and the admin Orders and Customers tables have nothing dangerous to render. Because this is behavior-based request inspection rather than a CVE-specific virtual patch, it also covers variants of the same attack. Both delivery routes, the admin-ajax.php action and the front-end form, cross this filter. BitFire WAF ships in BitFire FREE for eligible non-commercial sites; commercial sites require the appropriate commercial license.

The 2.4.15 Fix: Validate Input, Escape Output

Version 2.4.15 attacks the flaw at both ends. On input, purchase_form_validate_phone() now type-checks the submitted value and rejects it with a checkout error when preg_match('/[^0-9 +().-]/', $number) matches — only digits and phone punctuation survive, so quotes and markup can no longer be stored. On output, column_order_title() wraps the admin URL in esc_url(), names in esc_html(), and the phone number in both esc_attr() and esc_html(); the customers table gains the same escaping on its telephone, email, and name columns. The output fix also neutralizes any hostile values stored by earlier versions. Update to 2.4.15 or later immediately — but patching a plugin does not evict an attacker who already used it.

If Your Site Was Affected, Investigate for Persistence

Stored XSS gives an attacker a foothold in an administrator's browser, and a compromised admin session is how WordPress sites get rearmed. If your restaurant site ever ran 2.4.14 or earlier, treat it as possibly compromised: patch first, then run BitFire Threat Hunter. Threat Hunter performs a thorough post-compromise investigation and digs up exactly the artifacts that matter here — backdoor WordPress administrator accounts, hidden database triggers, suspicious database content such as planted payloads, long-running PHP processes, and droppers that can restore malware or reinfect the site. Remove every finding, rotate administrator, application-password, and other relevant credentials, and do not assume a missing malicious file means the site is clean.

Conclusion: Block the Request, Close the Door

Stored XSS in a checkout field is one of the easiest WordPress attacks to deliver and one of the most damaging to absorb, because it detonates in your admin session. BitFire gives you two decisive moves: the FREE WAF that blocks the poisoned checkout request before WordPress processes it, and BitFire Threat Hunter to hunt down any persistence a prior compromise left behind. Patch to 2.4.15 today, deploy BitFire, and run Threat Hunter once — before an attacker decides your order list is the easiest door into your site.

03
来源审查

易受攻击和固定的代码

相关来源位于 classes/models/shop/class-purchase.php (purchase_form_validate_phone) and classes/models/shop/class-order.php (Order::column_order_title).

之前弱势行为
// 2.4.14 — classes/models/shop/class-purchase.php: input only tag-stripped
$number = isset( $_POST['phone_number'] )
    ? sanitize_text_field( wp_unslash( $_POST['phone_number'] ) )
    : 0;

// 2.4.14 — classes/models/shop/class-order.php (Order::column_order_title): phone echoed unescaped
' ' . $this->user_info['first_name'] . ' ' . $this->user_info['last_name'] . ' </a><br/><a href="tel:' . $this->phone_number . '">' . $this->phone_number . '</a>'
之后纠正行为
// Corrected behavior, abridged from the supplied writeup (2.4.15)

// classes/models/shop/class-purchase.php: strict phone allowlist
if ( preg_match( '/[^0-9 +().-]/', $number ) ) {
    // checkout rejected with a validation error
}

// classes/models/shop/class-order.php: phone escaped for attribute and text
' ' . $this->user_info['first_name'] . ' ' . $this->user_info['last_name'] . '</a><br/><a href="tel:' . esc_attr( $this->phone_number ) . '">' . esc_html( $this->phone_number ) . '</a>'
04
零日保护

防止第一个利用请求

BitFire 在漏洞被公开之前以及其他供应商有时间开发签名或补丁之前,在零天保护 WordPress 服务器。

01 · 验证停止未知客户端

在之前未知的漏洞代码到达 WordPress 之前,机器人控制和浏览器验证会阻止不受信任的自动化客户端。

02·检测阻止恶意行为

常规 WAF 保护可识别危险的请求行为和恶意负载,而无需等待特定于漏洞的签名。

03 · 预防遏制运行时攻击

RASP 遵循 PHP 内部的执行,防止对受保护的文件、帐户和数据库内容进行未经授权的更改。

BitFire · WordPress 保护零日准备就绪
BitFire 零日 WordPress 漏洞防护
BitFire 结合了经过验证的客户端控制、基于行为的 WAF 检测和运行时 RASP 实施,可在漏洞利用名称、CVE、签名或供应商补丁之前保护 WordPress。
关于作者

科里·马什

Cory 拥有 20 多年的互联网安全经验,是 BitFire 项目的首席开发人员。

阅读 BitFire 安全研究 →
保护您的 WordPress 网站

在下一个漏洞到来之前添加保护。

BitFire 将机器人控制、请求检查、恶意软件检测和运行时保护结合在一个 WordPress 安全平台中。

免费保护我的网站 →