
Proof-of-concept for CVE-2022-42475, a FortiOS SSL-VPN heap overflow in sslvpnd enabling unauthenticated remote code execution, with affected version matrix and IOC checks.
Vulnerability name
CVE-2022-42475 Fortinet RCE vulnerability POC
Vulnerability cause
Due to a flaw in sslvpnd's validation of user-supplied input, an unauthenticated attacker can trigger a buffer overflow by sending a specially crafted packet, ultimately achieving arbitrary code execution on the target system.
Affected versions
2.0 <= FortiOS <= 7.2.2 0.0 <= FortiOS <= 7.0.8 4.0 <= FortiOS <= 6.4.10 2.0 <= FortiOS <= 6.2.11 0.0 <= FortiOS-6K7K <= 7.0.7 4.0 <= FortiOS-6K7K <= 6.4.9 2.0 <= FortiOS-6K7K <= 6.2.11 0.0 <= FortiOS-6K7K <= 6.0.14
Unaffected versions
FortiOS >= 7.2.3 FortiOS >= 7.0.9 FortiOS >= 6.4.11 FortiOS >= 6.2.12 FortiOS-6K7K >= 7.0.8 FortiOS-6K7K >= 6.4.10 FortiOS-6K7K >= 6.2.12 FortiOS-6K7K >= 6.0.15
Remediation
The official security versions that fix this vulnerability have now been released. Affected users are advised to upgrade their protection promptly: https://docs.fortinet.com/product/fortigate/7.2
Self-check for IOCs
Check whether the following log entry exists in the system: Logdesc=”Application crashed” and msg=”[…] application:sslvpnd,[…], Signal 11 received, Backtrace: […]”
Check whether the following files exist in the system
/data/lib/libips.bak /data/lib/libgif.so /data/lib/libiptcp.so /data/lib/libipudp.so /data/lib/libjepg.so /var/.sslvpnconfigbk /data/etc/wxd.conf /flash
Users can check the above files with the following commands:
diagnose sys last-modified-files /data/lib diagnose sys last-modified-files /var/ diagnose sys last-modified-files /data/etc/ diagnose sys last-modified-files /flash

MISP (core software) - Open Source Threat Intelligence and Sharing Platform

Open Cyber Threat Intelligence Platform

Scalable threat intelligence platform that enriches observables and files using 200+ analyzers, with built-in GUI, REST API, and automated workflows for SOC analysts and DFIR teams.