CVE-2026-96752 vulnerability and BitFire protection

How BitFire Blocks CVE-2026-96752: Zero Spam Stored XSS

WordPress 漏洞研究

BitFire's FREE WAF and Bot Protection stop the unauthenticated Contact Form 7 POST that plants stored XSS in Zero Spam's admin Detection Log.

Unauthenticated High severity (CVSS 7.2) Admin session script execution Stored cross-site scripting
BitFire·漏洞通报研究发表
咨询CVE-2026-96752
组件Zero Spam for WordPress
相关来源core/class-utilities.php (Utilities::sanitize_array), includes/class-db.php, includes/templates/admin-modal-details.php
执行摘要

WordPress 管理员需要了解什么

Zero Spam for WordPress — 20,000+ active installs — is vulnerable to stored cross-site scripting through version 5.7.10. An unauthenticated attacker submits a crafted Contact Form 7 form whose bracket-syntax field names become nested POST array keys carrying web scripts. Zero Spam's sanitizer inspects values but never keys, so the markup survives, is stored in the zerospam_log table when the submission is flagged as spam, and executes when a manage_options administrator opens the entry's details modal. BitFire FREE stops it at the request layer: Bot Protection blocks the automated POST, and the WAF inspects the payload for script injection before WordPress runs vulnerable code.

一目了然

主要事实

  • Unauthenticated attackers inject script markup through nested Contact Form 7 POST array keys.
  • Zero Spam 5.7.10 sanitizes array values but never array keys.
  • Malicious keys persist in the zerospam_log.submission_data column as JSON.
  • Scripts execute when a manage_options administrator opens the Detection Log details modal.
  • Fixed in 5.7.11 by key sanitization plus esc_html() output escaping.
  • BitFire Bot Protection blocks the automated POST; the WAF inspects its payload for script injection.
01
漏洞概述

了解曝光

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

受影响的组件Zero Spam for WordPress
潜在影响范围20,000+安装
攻击技术stored cross-site scripting
已发表2026-09-24
BitFire stops this attack before WordPress runs: Bot Protection rejects the automated POST and the WAF inspects the payload for script injection — the poisoned keys never reach the Detection Log, and the admin-facing script execution never happens.
02
技术分析

该漏洞如何发挥作用

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

How Nested POST Keys Become Admin-Facing Script

Zero Spam hooks Contact Form 7's wpcf7_validate filter and passes the entire $_POST array through Utilities::sanitize_array(). That function sanitizes values only — never keys. PHP turns bracket-syntax field names into nested array keys, so script markup hidden in a key name survives sanitization untouched. The path is reachable wherever the plugin's Contact Form 7 protection and detection logging are enabled — recommended defaults — and a submission is flagged as spam by simply failing the plugin's JavaScript token check. DB::log() then re-runs the same key-blind sanitizer and writes the JSON-encoded details into the zerospam_log table. The Detection Log details modal, rendered on a manage_options admin page, echoes that nested-array JSON unescaped — and the stored script executes in the administrator's authenticated browser session, persisting until the log entry is purged or rotated.

BitFire FREE Blocks It Before WordPress Runs

This attack arrives as an automated, unauthenticated form POST — exactly where BitFire FREE stops it. BitFire Bot Protection classifies the request before any vulnerable WordPress code executes: unknown and restricted bots cannot submit forms, POST data, or call sensitive endpoints, and clients presenting as browsers must pass lightweight JavaScript verification that real browsers normally pass while scripts and fake browsers often fail. BitFire's WAF inspects what the request contains — form fields and POST bodies — and detects malicious JavaScript injection, including common evasion patterns. Because the exploit's markup must ride inside the POST body, it crosses the WAF's inspection boundary. Both controls ship in BitFire FREE for eligible non-commercial websites; commercial sites need an appropriate commercial license. Allowed bots bypass bot restrictions — never WAF enforcement.

Fixed in 5.7.11: Sanitize Keys, Escape Output

Zero Spam 5.7.11 breaks the chain at two layers. Utilities::sanitize_array() now sanitizes string keys with sanitize_text_field() at every nesting level and rebuilds the array, so raw markup never reaches the database; the rewrite also fixes a latent bug where recursive calls dropped the requested sanitizer type. The Detection Log details modal now wraps its JSON output in esc_html(), which neutralizes log entries stored before the upgrade as well. Update immediately — every version through 5.7.10 keeps this stored-script path open.

If Your Site Was Affected, Investigate for Persistence.

Patching closes the known path; it does not undo a compromise that already happened. An administrator who opened a poisoned log entry ran attacker-controlled scripts in their authenticated session, and attackers rarely stop at one foothold. Run BitFire Threat Hunter, a thorough post-compromise investigation that uncovers 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, then rotate administrator and other relevant credentials. A clean-looking Detection Log is not proof your site is clean.

Stop the Next Attack at the Request Layer

Zero Spam's flaw proves a simple point: anything a stranger can POST to your site eventually gets read by an admin. BitFire stops the attack where it starts — Bot Protection shuts out automated form submissions and the WAF inspects the payload before WordPress processes it, behavior-based controls that stop even unknown CVEs. Update Zero Spam to 5.7.11 or later, run Threat Hunter if the vulnerable version was ever live, and put BitFire in front of the next attack. Start with BitFire FREE today.

03
来源审查

易受攻击和固定的代码

相关来源位于 core/class-utilities.php (Utilities::sanitize_array), includes/class-db.php, includes/templates/admin-modal-details.php.

之前弱势行为
// 5.7.10 — core/class-utilities.php: values are sanitized, keys never are.
foreach ( $array as $key => &$value ) {
    // $key is untouched — attacker markup in nested keys survives verbatim.
}

// includes/templates/admin-modal-details.php — unescaped nested-array output:
<?php echo wp_json_encode( $value ); ?>
之后纠正行为
// 5.7.11 — core/class-utilities.php: string keys are sanitized at every depth.
$key = is_string( $key ) ? sanitize_text_field( $key ) : $key;

// includes/templates/admin-modal-details.php — defense-in-depth output escaping:
<?php echo esc_html( wp_json_encode( $value ) ); ?>
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 安全平台中。

免费保护我的网站 →