SmarterMail 中的 CVSS 10.0 RCE 漏洞。您的邮件服务器是否易受攻击?
用于检测 CVE-2025-52691 的快速、精准扫描器——这是一个严重的未授权任意文件上传漏洞,可在 SmarterMail 服务器上实现远程代码执行。
CVE-2025-52691 是 SmarterMail 中的一个**最高严重级别(CVSS 10.0)**漏洞,允许通过任意文件上传实现未授权远程代码执行。
关键信息:
Node.js 扫描器:
Bash 扫描器:
# Verify Node.js version
node --version # Should be v12.0.0 or higher
# Verify curl (for Bash scanner)
curl --version
# Clone and run
git clone https://github.com/nxgn-kd01/smartermail-cve-scanner.git
cd smartermail-cve-scanner
node scan.js https://mail.example.com
# Clone and run
git clone https://github.com/nxgn-kd01/smartermail-cve-scanner.git
cd smartermail-cve-scanner
chmod +x scan.sh
./scan.sh https://mail.example.com
# Node.js version
curl -O https://raw.githubusercontent.com/nxgn-kd01/smartermail-cve-scanner/main/scan.js
node scan.js https://mail.example.com
# Bash version
curl -O https://raw.githubusercontent.com/nxgn-kd01/smartermail-cve-scanner/main/scan.sh
chmod +x scan.sh
./scan.sh https://mail.example.com
# Using Node.js
node scan.js https://mail.example.com
# Using Bash
./scan.sh https://mail.example.com
node scan.js https://mail.example.com --verbose
./scan.sh https://mail.example.com -v
node scan.js https://mail.example.com --json
./scan.sh https://mail.example.com --json
node scan.js https://mail.example.com --ci
./scan.sh https://mail.example.com --ci
| 代码 | 含义 |
|---|---|
| 0 | 不存在漏洞,或扫描已完成 |
| 1 | 存在漏洞(使用 --ci 标志时) |
| 2 | 扫描过程中发生错误 |
+============================================================+
| CVE-2025-52691 Scanner (SmarterMail RCE) |
+============================================================+
Severity: CRITICAL (CVSS 10.0)
Type: Unauthenticated Arbitrary File Upload -> RCE
[INFO] Scanning target: https://mail.example.com
Scan Results:
Target: https://mail.example.com
SmarterMail detected
Version: 100.0.9350
Build: 9350
STATUS: VULNERABLE
Build 9350 is affected by CVE-2025-52691
Remediation:
$ Upgrade to SmarterMail Build 9483 or later
$ Download: https://www.smartertools.com/smartermail/downloads
Scan Results:
Target: https://mail.example.com
SmarterMail detected
Version: 100.0.9483
Build: 9483
STATUS: NOT VULNERABLE
Build 9483 is patched
{
"vulnerability": "CVE-2025-52691",
"name": "SmarterMail RCE",
"severity": "CRITICAL",
"cvss": 10,
"target": "https://mail.example.com",
"smartermail_detected": true,
"version": "100.0.9350",
"build": 9350,
"status": "vulnerable",
"vulnerable": true,
"vulnerable_max_build": 9406,
"patched_min_build": 9413,
"recommended_build": 9483
}
name: SmarterMail Security Scan
on:
schedule:
- cron: '0 6 * * *' # Daily at 6 AM
workflow_dispatch:
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Download Scanner
run: |
curl -O https://raw.githubusercontent.com/nxgn-kd01/smartermail-cve-scanner/main/scan.js
- name: Scan Mail Server
run: node scan.js ${{ secrets.MAIL_SERVER_URL }} --ci
security-scan:
stage: test
image: node:18
script:
- curl -O https://raw.githubusercontent.com/nxgn-kd01/smartermail-cve-scanner/main/scan.js
- node scan.js $MAIL_SERVER_URL --ci
allow_failure: false
该扫描器:
node scan.js https://your-mail-server.com
从以下网址下载最新版本: https://www.smartertools.com/smartermail/downloads
node scan.js https://your-mail-server.com --ci
如果无法立即升级:
欢迎贡献!请随时提交 issue 或 pull request。
MIT 许可证——详情请参阅 LICENSE 文件
仅限授权使用
本工具适用于:
在扫描任何系统之前,您必须获得明确授权。
未经授权扫描计算机系统可能违反法律,包括但不限于:
本工具的作者:
使用本工具即表示您确认拥有扫描目标系统的合法权利,并愿意为自己的行为承担全部责任。
保持安全,并确保您的邮件服务器及时更新!
| 选项 | 说明 |
|---|
-v, --verbose | 显示详细输出 |
--json | 以 JSON 格式输出结果 |
--ci | 若存在漏洞则退出代码为 1(用于 CI/CD) |
-t, --timeout | 连接超时(默认:10s/10000ms) |
-h, --help | 显示帮助信息 |
| 属性 | 值 |
|---|
| CVE 编号 | CVE-2025-52691 |
| CVSS 评分 | 10.0(严重) |
| CVSS 向量 | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| 攻击向量 | 网络 |
| 身份验证 | 无需 |
| 影响 | 系统完全沦陷 |