CVE-2022-40684: Authentication bypass in administrative interface
An authentication bypass using an alternate path or channel [CWE-288] in Fortinet FortiOS version 7.2.0 through 7.2.1 and 7.0.0 through 7.0.6, FortiProxy version 7.2.0 and version 7.0.0 through 7.0.6 and FortiSwitchManager version 7.2.0 and 7.0.0 allows an unauthenticated atttacker to perform operations on the administrative interface via specially crafted HTTP or HTTPS requests.
Other sources
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=LocalProcessAccessPlease 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 superadmin account called 'fortigate-tech-support':<br/># show system admin<br/>edit fortigate-tech-support<br/>set accprofile superadmin<br/>set vdom root<br/>set password ENC [...]<br/>next<br/>Please contact customer support for assistance.## Workaround:## FortiOS:Disable HTTP/HTTPS administrative interfaceORLimit IP addresses that can reach the administrative interface:<br/>config firewall address<br/>edit myallowedaddresses<br/>set subnet <MY IP> <MY SUBNET><br/>end<br/>Then create an Address Group:<br/>config firewall addrgrp<br/>edit MGMTIPs<br/>set member myallowedaddresses<br/>end<br/>Create the Local in Policy to restrict access only to the predefined group on management interface (here: port1):<br/>config firewall local-in-policy<br/>edit 1<br/>set intf port1<br/>set srcaddr MGMTIPs<br/>set dstaddr all<br/><br/>set action accept<br/>set service HTTPS HTTP<br/>set schedule always<br/><br/>set status enable<br/>next<br/><br/>edit 2<br/>set intf any<br/>set srcaddr all<br/>set dstaddr all<br/>set action deny<br/>set service HTTPS HTTP<br/>set schedule always<br/>set status enable<br/>end<br/>If using non default ports, create appropriate service object for GUI administrative access:<br/>config firewall service custom<br/>edit GUIHTTPS<br/>set tcp-portrange admin-sport<br/>next<br/><br/>edit GUIHTTP<br/><br/>set tcp-portrange admin-port<br/>end<br/>Use 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):<br/>config system interface<br/>edit port1<br/>set dedicated-to management<br/>set trust-ip-1 <MY IP> <MY SUBNET<br/>end<br/>Please contact customer support for assistance.## FortiSwitchManager:DIsable HTTP/HTTPS administrative interfacePlease contact customer support for assistance.
— FortiGuard
Fortinet FortiOS, FortiProxy, and FortiSwitchManager contain an authentication bypass vulnerability that could allow an unauthenticated attacker to perform operations on the administrative interface via specially crafted HTTP or HTTPS requests.
— CISA
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
FortiProxyto a version that resolves this vulnerability.Fixed in 7.2.1 - Upgrade
Upgrade
FortiSwitchManagerto a version that resolves this vulnerability.Fixed in 7.2.1 - Compensating control
FortiOS workaround: disable HTTP/HTTPS administrative interface OR limit IP addresses that can reach the administrative interface by configuring firewall address objects and groups and applying a local-in-policy on port1 to accept only MGMT_IPs and deny all others for services HTTPS and HTTP (using GUI_HTTPS/GUI_HTTP custom service objects if using non-default ports).
- Compensating control
FortiProxy workaround: disable HTTP/HTTPS administrative interface OR (for FortiProxy VM all versions or FortiProxy appliance 7.0.6) limit IP addresses that can reach the administrative interface by setting config system interface edit port1, dedicated-to management, and trust-ip-1 to the allowed <MY IP> <MY SUBNET>.
- Compensating control
FortiSwitchManager workaround: disable HTTP/HTTPS administrative interface.
- Operational
Immediately validate systems against the indicator of compromise in device logs: user=Local_Process_Access.
- Operational
If compromise is suspected/confirmed, customer reports include a malicious super_admin account creation named 'fortigate-tech-support' (shown via 'show system admin' -> edit fortigate-tech-support -> set accprofile super_admin -> set vdom root). Contact customer support for assistance.
Event History
Frequently Asked Questions
What is the vulnerability ID for the Fortinet authentication bypass vulnerability?
The vulnerability ID for the Fortinet authentication bypass vulnerability is CVE-2022-40684.
Which Fortinet products are affected by the authentication bypass vulnerability?
The Fortinet authentication bypass vulnerability affects FortiOS, FortiProxy, and FortiSwitchManager, which are part of the Fortinet Multiple Products.
How does the authentication bypass vulnerability in Fortinet Multiple Products work?
The authentication bypass vulnerability in Fortinet Multiple Products allows an unauthenticated attacker to perform operations on the administrative interface through crafted HTTP or HTTPS requests.
Is authentication required to exploit the Fortinet authentication bypass vulnerability?
No, authentication is not required to exploit the Fortinet authentication bypass vulnerability.
Where can I find more information about the Fortinet authentication bypass vulnerability?
You can find more information about the Fortinet authentication bypass vulnerability at the following reference: [Fortinet PSIRT Advisory FG-IR-22-377](https://www.fortiguard.com/psirt/FG-IR-22-377).