How BitFire Blocks CVE-2026-93747: wpForo Forum Stored XSS

WordPress 漏洞研究

BitFire's WAF blocks the wpForo CVE-2026-93747 stored XSS payload at the request layer, before it is stored or ever rendered to an admin.

Authenticated member account Medium severity (CVSS 6.4) Script execution in admin sessions Stored Cross-Site Scripting
BitFire·漏洞通报研究发表
咨询CVE-2026-93747
组件wpForo Forum
相关来源classes/Forms.php — field_wrap_profile() (~line 322) and includes/functions-template.php — wpforo_apply_ucf_shortcode() (~line 2490)
执行摘要

WordPress 管理员需要了解什么

wpForo Forum 3.1.6 and earlier let a logged-in member store unencoded markup in plain-text profile fields. The account-update handler only length-checks text input, and the profile renderer echoes the stored value raw — both in field_wrap_profile() and through the [wpfucf] template placeholder. The result is stored cross-site scripting that executes in the browser of anyone who views the profile, including site administrators. BitFire's WAF inspects the update request, detects the cross-site scripting payload, and blocks it before WordPress stores anything. Update to wpForo 3.1.7 for the vendor fix, and run BitFire Threat Hunter if an affected version was ever live on your site.

一目了然

主要事实

  • Vulnerable path: a nonce-verified, ownership-checked profile update (wpfaction=profile_update) persists text field values without HTML encoding.
  • Forms::prepare_values() encodes only whitelisted field types and names; built-in text fields such as 'occupation' render raw.
  • Both render sinks are affected: Forms::field_wrap_profile() and the [wpfucf] placeholder handler wpforo_apply_ucf_shortcode().
  • Injected script executes in the browser of any viewer allowed by the field's canView settings — administrators reviewing profiles included.
  • Fix in 3.1.7: new is_display_value_safe_html() whitelist plus conditional esc_html() at both sinks.
  • BitFire FREE WAF detects the script payload in the update POST and blocks storage; no PRO required for this request-layer control.
01
漏洞概述

了解曝光

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

受影响的组件wpForo Forum
潜在影响范围20,000+安装
攻击技术stored cross-site scripting
已发表2026-09-24
BitFire's WAF catches the wpForo profile-update payload at the request layer and blocks it before WordPress stores a byte — the injection never reaches your members' browsers.
02
技术分析

该漏洞如何发挥作用

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

Inside CVE-2026-93747: Stored XSS in Member Profile Fields

The storage step is an authenticated POST to the forum account page (wpfaction=profile_update). The form is nonce-verified and ownership is enforced, so the attacker needs only an ordinary member account — no administrator role. Forms::validate() applies no HTML encoding to text fields; it length-checks the value and even runs htmlspecialchars_decode(), so markup reaches the database untouched. On render, Forms::prepare_values() encodes only a short whitelist of field types and names. Everything else — including built-in text fields such as 'occupation' — is concatenated raw by field_wrap_profile(), and wpforo_apply_ucf_shortcode() returns stored values unescaped when filling [wpfucf] placeholders in HTML profile templates. Any visitor permitted to view the field executes the stored script in their own session, and administrators reviewing profiles are the highest-value targets.

BitFire FREE WAF Blocks the Payload Before It Is Stored

A stored XSS has exactly one delivery moment: the profile-update request. That POST body is exactly where BitFire intercepts it. The BitFire FREE Web Application Firewall inspects form fields and POST bodies before WordPress processes them and detects malicious JavaScript payloads in submitted data. When a profile update carries script content, BitFire blocks the request: the value never reaches the database, and no profile page ever renders it to an administrator. The one dependency — a matching script payload in inspected request data — is exactly what this exploit must transmit to function. Because the rules are behavior-based, they stop unknown CVEs without a CVE-specific virtual patch. The protection ships in BitFire FREE for eligible non-commercial websites; commercial sites need a commercial license.

If Your Site Was Affected, Investigate for Persistence

Updating to 3.1.7 closes the rendering hole, but it does not undo what an exploited session already did. Script that ran in an administrator's browser acted with that administrator's authority — new admin accounts, uploaded files, changed settings. If wpForo 3.1.6 or earlier was ever live on your site, run BitFire PRO Threat Hunter immediately. It performs a thorough post-compromise investigation and surfaces backdoor WordPress administrator accounts, hidden database triggers, long-running PHP processes, and droppers that can reinstall malware or reinfect a site that looks clean. Patch, investigate, remove every persistence mechanism it finds, and rotate administrator credentials. An absence of obvious malicious files is not proof your site is clean.

Patch Now, Then Let BitFire Hold the Line

Update wpForo to 3.1.7 today — the release also fixes an infinite recursion that caused fatal errors and 504 timeouts on forum pages. Then put BitFire in front of the site: the FREE WAF blocks cross-site scripting payloads in profile updates before they are stored, protection that holds even on the day a new bug ships. Already ran an affected version? Let BitFire PRO Threat Hunter sweep for backdoor admins, hidden triggers, and droppers. Get BitFire FREE now.

03
来源审查

易受攻击和固定的代码

相关来源位于 classes/Forms.php — field_wrap_profile() (~line 322) and includes/functions-template.php — wpforo_apply_ucf_shortcode() (~line 2490).

之前弱势行为
// classes/Forms.php — field_wrap_profile() (wpForo 3.1.6)
$f = $this->prepare_values( $f, WPF()->current_object['userid'] );
// prepare_values() HTML-encodes only whitelisted types/names; plain text passes through untouched
$html .= $f['value'];

// includes/functions-template.php — wpforo_apply_ucf_shortcode() (3.1.6)
// substitutes the viewed member's stored value for [wpfucf field="..."] placeholders
return $f['value'];
之后纠正行为
// Corrected behavior, abridged from the supplied writeup (wpForo 3.1.7)
// New whitelist helper in classes/Forms.php — true only for the field types and names
// prepare_values() already converts to trusted HTML (url, email, tel, file, avatar, color,
// textarea, tinymce, datetime, html; skype, location, signature, about)
public function is_display_value_safe_html( $f ) { /* whitelist check */ }

// classes/Forms.php — field_wrap_profile()
$html .= ( is_scalar( $f['value'] ) && ! $this->is_display_value_safe_html( $f ) )
    ? esc_html( (string) $f['value'] ) : $f['value'];

// includes/functions-template.php — wpforo_apply_ucf_shortcode()
return ( is_scalar( $f['value'] ) && ! $this->is_display_value_safe_html( $f ) )
    ? esc_html( (string) $f['value'] ) : $f['value'];
04
零日保护

防止第一个利用请求

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

01 · 验证停止未知客户端

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

02·检测阻止恶意行为

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

03 · 预防遏制运行时攻击

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

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

科里·马什

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

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

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

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

免费保护我的网站 →