vulnerability
Fortinet FortiOS: CVE-2022-40684: Authentication bypass in administrative interface
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 10 | (AV:N/AC:L/Au:N/C:C/I:C/A:C) | Oct 10, 2022 | Oct 10, 2022 | Jun 23, 2026 |
Severity
10
CVSS
(AV:N/AC:L/Au:N/C:C/I:C/A:C)
Published
Oct 10, 2022
Added
Oct 10, 2022
Modified
Jun 23, 2026
Description
An authentication bypass using an alternate path or channel vulnerability [CWE-288] in FortiOS, FortiProxy and FortiSwitchManager may allow an unauthenticated attacker to perform operations on the administrative interface via specially crafted HTTP or HTTPS requests.Exploitation Status:Fortinet is aware of an instance where this vulnerability was exploited, and recommends immediately validating your systems against the following indicator of compromise in the device's logs:user=Local_Process_AccessPlease contact customer support for assistance.UPDATE:Fortinet is aware of instances where this vulnerability was exploited to download the config file from the targeted devices, and to add a malicious super_admin account called 'fortigate-tech-support':# show system adminedit fortigate-tech-supportset accprofile super_adminset vdom rootset password ENC [...]nextPlease contact customer support for assistance.Workaround:FortiOS:Disable HTTP/HTTPS administrative interfaceORLimit IP addresses that can reach the administrative interface:config firewall addressedit my_allowed_addressesset subnet <MY IP> <MY SUBNET>endThen create an Address Group:config firewall addrgrpedit MGMT_IPsset member my_allowed_addressesendCreate the Local in Policy to restrict access only to the predefined group on management interface (here: port1):config firewall local-in-policyedit 1set intf port1set srcaddr MGMT_IPsset dstaddr allset action acceptset service HTTPS HTTPset schedule alwaysset status enablenextedit 2set intf anyset srcaddr allset dstaddr allset action denyset service HTTPS HTTPset schedule alwaysset status enableendIf using non default ports, create appropriate service object for GUI administrative access:config firewall service customedit GUI_HTTPSset tcp-portrange admin-sportnextedit GUI_HTTPset tcp-portrange admin-portendUse these objects instead of 'HTTPS HTTP' in the local-in policy 1 and 2 below.UPDATE: When using an HA reserved management interface, the local in policy needs to be configured slightly differently - please see: https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-configure-a-local-in-policy-on-a-HA/ta-p/222005https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-configure-a-local-in-policy-on-a-HA/ta-p/222005Please contact customer support for assistance.FortiProxy:Disable HTTP/HTTPS administrative interfaceORFor FortiProxy VM all versions or FortiProxy appliance 7.0.6:Limit IP addresses that can reach the administrative interface (here: port1):config system interfaceedit port1set dedicated-to managementset trust-ip-1 <MY IP> <MY SUBNET>endPlease contact customer support for assistance.FortiSwitchManager:DIsable HTTP/HTTPS administrative interfacePlease contact customer support for assistance.
Solution
fortios-upgrade-latest
Rapid7 Labs
2026 Global Threat Landscape Report
The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.