How BitFire Blocks CVE-2026-96039: BA Book Everything Stored XSS

WordPress 漏洞研究

BitFire FREE Bot Protection and WAF stop CVE-2026-96039, an unauthenticated stored XSS chain in BA Book Everything, before the payload ever reaches WordPress.

Unauthenticated High severity (CVSS 7.2) Attacker script in site context Stored cross-site scripting
BitFire·漏洞通报研究发表
咨询CVE-2026-96039
组件BA Book Everything
相关来源includes/class-babe-html.php — BABE_html::checkout_form() value attribute (sink); includes/class-babe-order.php — sanitize_checkout_vars() (input)
执行摘要

WordPress 管理员需要了解什么

BA Book Everything, the WordPress booking plugin active on roughly 10,000 sites, exposed a stored cross-site scripting path through its guest checkout through version 1.8.27. An unauthenticated attacker creates a guest booking, receives the order credentials the checkout guards demand, then posts a crafted first_name that survives the plugin's weak sanitizer. The plugin later concatenates that value unescaped into the checkout form's value attribute, so anyone who opens that order's checkout URL runs attacker-controlled script in the site's context. BitFire FREE stops the attack at the request layer: Bot Protection blocks scripted form delivery before WordPress runs, and the WAF detects the payload before it is ever stored.

一目了然

主要事实

  • Unauthenticated reachability: guest bookings hand out the order_id, order_num, and order_hash required to reach action_to_pay()
  • sanitize_text_field() strips tags but preserves double quotes, letting first_name break out of the checkout form's value attribute
  • BABE_html::checkout_form() echoed the stored value without esc_attr(); any visitor loading the order's checkout URL executes attacker script
  • Fixed in 1.8.28: input runs through BABE_Functions::clear_string_from_special_chars() and output is escaped with esc_attr()
  • BitFire FREE Bot Protection blocks scripted form submissions before vulnerable WordPress code runs
  • BitFire FREE WAF detects the cross-site scripting payload in the checkout POST before it is stored
01
漏洞概述

了解曝光

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

受影响的组件BA Book Everything
潜在影响范围10000安装
攻击技术stored cross-site scripting
已发表2026-09-27
BitFire stops CVE-2026-96039 twice: Bot Protection blocks scripted form submissions before WordPress runs, and the WAF detects the XSS payload in the checkout POST before it is ever stored.
02
技术分析

该漏洞如何发挥作用

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

CVE-2026-96039: How the Unauthenticated XSS Chain Works

BA Book Everything's booking and checkout handlers both hook template_redirect and consume $_POST directly on any front-end request, with no nonce and no capability check in the vulnerable tree. Reaching action_to_pay() only requires a valid order_id, order_num, and order_hash — and action_to_checkout() hands exactly those values to guests who submit the public booking form, by default without any account. The failure is two-sided: sanitize_checkout_vars() passes first_name through sanitize_text_field(), which strips tags but preserves double quotes, and BABE_html::checkout_form() concatenates the stored value raw into value="$field_content" on the checkout page. One quote breaks the attribute; the injected script then executes for every visitor who loads that order's checkout URL, including a logged-in administrator.

BitFire FREE Stops Delivery and Payload in One Pass

This chain is form-driven from start to finish, and BitFire Bot Protection is built for exactly that traffic. Scripted clients must pass lightweight browser verification before they can submit forms or POST data; scripts and fake browsers typically fail, so the booking and checkout submissions never reach vulnerable WordPress code. If a payload is submitted through inspected traffic anyway, the BitFire WAF inspects POST form data before WordPress processes it, detects the injected cross-site scripting payload, and blocks the request — nothing malicious reaches update_post_meta() or the checkout page. Both layers ship in BitFire FREE for eligible non-commercial websites; commercial sites need the appropriate commercial license. Bot checks stop automated delivery, not allowed clients — which is precisely why the WAF payload inspection stands behind them.

Update to BA Book Everything 1.8.28

Version 1.8.28 closes both ends of the chain. sanitize_checkout_vars() now runs first_name, last_name, and related checkout fields through the new BABE_Functions::clear_string_from_special_chars(), which deletes quotes, angle brackets, slashes, and other attribute-breaking characters before storage; sanitize_phone() bounds phone values. At the sink, checkout_form() wraps the field name, id, and value in esc_attr(), so even values stored under 1.8.27 cannot escape the attribute when rendered. Update immediately — the changelog confirms 1.8.28 is the security-fix release reported by Wordfence.

If Your Site Was Affected, Investigate for Persistence

Patching closes the documented path; it does not undo a compromise that already happened. If your site ran 1.8.27 or earlier, assume an attacker may have already planted a payload and had an administrator open it. Run BitFire Threat Hunter for a thorough post-compromise investigation: it discovers backdoor WordPress administrator accounts, hidden database triggers, long-running PHP processes, and droppers that restore malware or reinfect the site. Remove every persistence mechanism it finds and rotate administrator passwords and application passwords. Do not treat the absence of an obvious malicious file as proof your site is clean.

Protect the Checkout, Then Prove It Is Clean

Update BA Book Everything to 1.8.28 today. Keep BitFire in front of your checkout while you do: Bot Protection stops automated form delivery before WordPress runs, and the WAF detects XSS payloads in the POST before they are stored. If your site ran an affected version, finish the job with BitFire Threat Hunter to find and remove any persistence an attacker left behind. Deploy BitFire now and close this attack chain for good.

03
来源审查

易受攻击和固定的代码

相关来源位于 includes/class-babe-html.php — BABE_html::checkout_form() value attribute (sink); includes/class-babe-order.php — sanitize_checkout_vars() (input).

之前弱势行为
// includes/class-babe-order.php — sanitize_checkout_vars() (vulnerable 1.8.27)
$output['first_name'] = isset($arr['first_name']) ? sanitize_text_field($arr['first_name']) : '';
$output['last_name'] = isset($arr['last_name']) ? sanitize_text_field($arr['last_name']) : '';

// includes/class-babe-html.php — BABE_html::checkout_form() sink (vulnerable 1.8.27)
<input type="text" class="checkout_input_field checkout_input_required" name="'.$field_name.'" id="'.$field_name.'" value="'.$field_content.'" '.apply_filters('babe_checkout_field_required', '', $field_name).'/>
之后纠正行为
// includes/class-babe-order.php — sanitize_checkout_vars() (fixed 1.8.28)
$output['first_name'] = isset($arr['first_name'])
    ? BABE_Functions::clear_string_from_special_chars( sanitize_text_field($arr['first_name']) ) : '';
$output['last_name'] = isset($arr['last_name'])
    ? BABE_Functions::clear_string_from_special_chars( sanitize_text_field($arr['last_name']) ) : '';

// includes/class-babe-html.php — BABE_html::checkout_form() sink (fixed 1.8.28)
<input type="text" class="checkout_input_field checkout_input_required" name="'.esc_attr($field_name).'" id="'.esc_attr($field_name).'" value="'.esc_attr($field_content).'" '.apply_filters('babe_checkout_field_required', '', $field_name).'/>
04
零日保护

防止第一个利用请求

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

01 · 验证停止未知客户端

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

02·检测阻止恶意行为

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

03 · 预防遏制运行时攻击

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

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

科里·马什

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

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

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

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

免费保护我的网站 →