IPBUF安全漏洞报告
English
CVE-2026-43892 CVSS 8.8 高危

CVE-2026-43892 AntSword远程代码执行漏洞

披露日期: 2026-05-12

漏洞信息

漏洞编号
CVE-2026-43892
漏洞类型
远程代码执行
CVSS评分
8.8 高危
攻击向量
网络 (AV:N)
认证要求
无需认证 (PR:N)
用户交互
需要交互 (UI:R)
影响产品
AntSword

相关标签

RCE代码注入AntSwordXSSWeb管理工具

漏洞概述

AntSword是一款跨平台网站管理工具。在2.1.16版本之前,由于`noxss()`函数清理不完整,攻击者可以通过jquery.terminal格式代码注入实现一键RCE。该漏洞无需认证但需要用户交互,成功利用可导致系统被完全控制。

技术细节

该漏洞的核心在于AntSword未能有效过滤用于终端显示的格式化代码。AntSword集成了jquery.terminal库,该库允许使用特定语法(如`[[;color;]text]`)格式化终端输出。由于`noxss()`函数存在绕过缺陷,攻击者可以构造包含恶意脚本的特殊格式字符串。当用户在AntSword客户端查看被污染的数据时,终端渲染器会解析该格式字符串,进而执行任意JavaScript代码。这种“一键”攻击方式使得攻击者能在用户交互的瞬间获得客户端控制权,实现远程代码执行。

攻击链分析

STEP 1
步骤1:侦察
攻击者识别目标正在使用AntSword 2.1.16之前的版本。
STEP 2
步骤2:制作Payload
攻击者构造包含恶意jquery.terminal格式代码的Payload,绕过noxss()过滤。
STEP 3
步骤3:注入Payload
攻击者将Payload注入到服务器响应中(例如通过已控制的Webshell或文件内容)。
STEP 4
步骤4:诱导交互
诱导受害者(管理员)在AntSword客户端中查看包含恶意数据的终端输出。
STEP 5
步骤5:执行代码
AntSword客户端解析格式代码,触发JavaScript执行,实现远程代码执行。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
// PoC Concept for CVE-2026-43892 // This demonstrates the payload structure that exploits the jquery.terminal format injection. // The vulnerability lies in the 'noxss()' function failing to sanitize format codes. // jquery.terminal allows formatting like [[class;style;]text]. // By injecting a specific format, we can achieve RCE. // Malicious payload to be sent to the server (e.g., via webshell response) let payload = "[[;red;]Normal Text]][[ ; malicious_code_execution ; ]]alert('RCE');"; // In a real scenario, this payload would be echoed by the server. // When AntSword < 2.1.16 renders this, the malformed format code triggers JS execution. console.log("Payload generated: " + payload);

影响范围

AntSword < 2.1.16

防御指南

临时缓解措施
建议用户立即升级AntSword至2.1.16或更高版本以修复`noxss()`函数的清理缺陷。在无法升级的情况下,应严格限制AntSword的使用环境,避免查看来自不可信服务器的终端输出,并加强对Webshell服务器的安全防护。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表