## FortiOS SSL-VPN buffer overflow vulnerability

# 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 rhost rport lhost 'command'

python3 8443 '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](