Fortinet FortiOS and FortiProxy SSL VPN WebVPN Heap Buffer Overflow
CVE-2018-13383 is a post-authentication heap-based buffer overflow in the SSL VPN WebVPN portal of Fortinet FortiOS and FortiProxy. While proxying a webpage, the WebVPN JavaScript parser copies JavaScript href-related data using an input-controlled length into a fixed 0x2000-byte heap buffer without adequate bounds checking. An authenticated attacker can cause the appliance to proxy attacker-controlled web content containing oversized JavaScript data, corrupting adjacent heap objects. Affected versions include FortiOS 6.0.0 through 6.0.4, 5.6.0 through 5.6.10, 5.4.0 through 5.4.12, and 5.2.14 and earlier, as well as FortiProxy 2.0.0 and 1.2.8 and earlier.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can terminate the SSL VPN web service, causing denial of service for logged-in users. Heap corruption can also be leveraged for remote code execution on the VPN appliance with the privileges of the vulnerable SSL VPN service. Demonstrated exploitation corrupted OpenSSL SSL-object fields, including function pointers reached during SSL processing, and redirected control flow through a return-oriented programming chain.
If you can’t patch tonight, do this now.
If patching cannot be performed immediately, disable SSL VPN/WebVPN functionality to remove the vulnerable attack surface. Restrict SSL VPN access to trusted users and networks where operationally feasible, monitor for abnormal SSL VPN service restarts or crashes, and investigate potentially exposed VPN credentials. Enforce MFA and rotate VPN credentials if credential disclosure through related FortiGate SSL VPN vulnerabilities is suspected.
Patch, then assume compromise.
Upgrade FortiOS or FortiProxy to a Fortinet release that includes the vendor fix for CVE-2018-13383. Fortinet advised upgrading affected FortiOS deployments to patched releases, including FortiOS 5.4.11, 5.6.9, 6.0.5, 6.2.0, or later; administrators should use the current supported fixed release appropriate to their appliance and deployment.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.