CVE-2026-93303 vulnerability and BitFire protection

How BitFire Blocks CVE-2026-93303: HT Contact Form XSS

WordPress 漏洞研究

BitFire's WAF detects and blocks the unauthenticated stored DOM-based XSS payload in HT Contact Form ≤ 2.10.1 before WordPress processes the request.

Unauthenticated High severity — CVSS 7.2 Stored XSS script execution Stored DOM-based cross-site scripting
BitFire·漏洞通报研究发表
咨询CVE-2026-93303
组件HT Contact Form – Drag & Drop Form Builder for WordPress
相关来源admin/Includes/Api/Endpoints/Draft.php (save_draft/update_draft); DOM sink assets/js/form.js (_populateFormFields)
执行摘要

WordPress 管理员需要了解什么

HT Contact Form ≤ 2.10.1 lets unauthenticated visitors store arbitrary HTML in a form draft through POST /wp-json/ht-form/v1/draft/save, whose permission callback is __return_true and whose wp_rest nonce is issued to every visitor on any page that renders a form. Rich Text draft values skip the sanitization the final-submission path applies, and the save response hands back the draft key and access token needed to craft a resume link. Anyone who opens that link loads the stored HTML straight into the Quill editor DOM — container._quill.root.innerHTML = value — executing attacker script in the site origin within the victim's session. BitFire FREE's WAF blocks the malicious form payload before WordPress processes it, and BitFire Threat Hunter covers post-compromise investigation.

一目了然

主要事实

  • Unauthenticated REST access: POST /wp-json/ht-form/v1/draft/save registers __return_true as its permission callback, and the required wp_rest nonce is localized onto every page that renders a form.
  • In 2.10.1, Rich Text draft values bypassed sanitization, while the final-submission path in Submission.php sanitized the same field type.
  • The save response returns draft_key and access_token, letting the drafter build a resume link a victim must click — exploitation requires that user interaction.
  • Client sink: assets/js/form.js assigns the stored draft value via container._quill.root.innerHTML, executing it in the victim's browser.
  • Fixed in 2.10.2 with Submission::sanitize_richtext_field() on all draft write paths and Quill clipboard parsing at the client sink.
  • BitFire FREE's WAF cross-site scripting inspection blocks the malicious form payload before WordPress processes it.
01
漏洞概述

了解曝光

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

受影响的组件HT Contact Form – Drag & Drop Form Builder for WordPress
潜在影响范围10,000+安装
攻击技术stored dom-based cross-site scripting
已发表2026-09-24
BitFire's WAF inspects every form field and POST body before WordPress runs — the malicious Rich Text payload behind CVE-2026-93303 is stopped at the request layer, so it is never stored and never reaches a victim's browser.
02
技术分析

该漏洞如何发挥作用

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

How CVE-2026-93303 Works

HT Contact Form's Save & Resume feature exposes an unauthenticated REST endpoint, POST /wp-json/ht-form/v1/draft/save, registered with __return_true as its permission callback. The wp_rest nonce it requires is localized onto every page that renders a form, so it is an anti-CSRF check, not authentication. In 2.10.1, the save_draft() and update_draft() handlers persist the form_data parameter verbatim — including Rich Text field HTML — while the final-submission path sanitizes it. The save response returns draft_key and access_token, so the attacker can build a resume link. When any user opens that link, assets/js/form.js loads the draft and assigns the stored value straight into the Quill editor DOM via container._quill.root.innerHTML = value, executing attacker script in the site origin inside the victim's session.

BitFire WAF: Blocked Before WordPress Runs

BitFire FREE's Web Application Firewall inspects form fields and POST bodies before WordPress or any plugin processes them, and its cross-site scripting rule class matches the documented payload for CVE-2026-93303 exactly: script-capable HTML submitted in a form_data Rich Text field. The exploit cannot survive that inspection. BitFire detects the malicious markup and blocks the request at the perimeter — the payload never reaches save_draft(), never lands in the draft store, and never loads into a victim's browser. This is behavior-based protection, not a CVE-specific virtual patch, so it also covers unreported variants of the same injection class. The WAF ships in BitFire FREE for eligible non-commercial sites; commercial sites run it under the appropriate commercial license.

The 2.10.2 Patch: Sanitization at Both Ends

Version 2.10.2 interrupts this chain at both ends. Server-side, the plugin promotes its existing Rich Text sanitizer into a shared Submission::sanitize_richtext_field() — a wp_kses element and attribute allow-list with protocol and style/class filtering plus a length cap — and routes every draft write through sanitize_draft_form_data() in save_draft() (including the update-in-place branch) and update_draft(); unconfigured string values fall back to sanitize_text_field(). Client-side, form.js replaces the raw innerHTML assignment with container._quill.clipboard.dangerouslyPasteHTML(value), filtering stored HTML through Quill's format-restricted clipboard parser as defense in depth. Update to 2.10.2 or later immediately — and remember that patching removes the flaw, not a compromise that already happened.

If Your Site Was Affected, Investigate for Persistence

A stored XSS in a form plugin is a foothold, not merely a bug. If your site ever ran 2.10.1 or earlier, treat it as potentially compromised: anyone persuaded to open a crafted resume link handed attacker script a session in your site origin. Patch first, then investigate. BitFire Threat Hunter performs a thorough post-compromise sweep for backdoor WordPress administrator accounts, hidden database triggers, long-running PHP processes, and droppers that can restore malware or reinfect the site. Remove every persistence mechanism it finds and rotate relevant credentials, including administrator passwords. An absence of obvious malicious files is not evidence your site is clean.

Protect Your Site With BitFire

Unauthenticated REST endpoints and unsanitized persistence should never meet, and CVE-2026-93303 shows what happens when they do. BitFire's WAF blocks the malicious form payload before WordPress runs, closing this attack class at the request layer without waiting for a plugin fix. Turn on BitFire today, update HT Contact Form to 2.10.2 or later, and run Threat Hunter if the vulnerable version was ever live. One blocked request is the difference between a normal day and an incident response.

03
来源审查

易受攻击和固定的代码

相关来源位于 admin/Includes/Api/Endpoints/Draft.php (save_draft/update_draft); DOM sink assets/js/form.js (_populateFormFields).

之前弱势行为
// assets/js/form.js, _populateFormFields() — draft resume sink (2.10.1)
container._quill.root.innerHTML = value;
之后纠正行为
// Corrected behavior, abridged from the supplied writeup (2.10.2, assets/js/form.js)
// draft-sourced HTML is routed through Quill's format-restricted clipboard
// parser and field.value is read back from the parsed editor DOM
container._quill.clipboard.dangerouslyPasteHTML(value);
field.value = container._quill.root.innerHTML;
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 安全平台中。

免费保护我的网站 →