CVE-2022-40684 in fortinet fortiproxy

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

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.

Affected software: fortinet fortiproxy, fortinet fortiswitchmanager, fortinet fortios

Scores

What LogPulse has for it

How to mitigate it

Upgrade FortiOS, FortiProxy and FortiSwitchManager for the admin auth bypass (FG-IR-22-377)

Patch or upgrade. The fixed releases close the authentication bypass on the HTTP/HTTPS admin interface; until then, disabling or restricting the admin interface removes the exposure.

Applies to: FortiOS 7.0.0-7.0.6 and 7.2.0-7.2.1, FortiProxy 7.0.0-7.0.6 and 7.2.0, FortiSwitchManager 7.0.0 and 7.2.0

  1. Check the firmware version of every FortiGate, FortiProxy and FortiSwitchManager (Dashboard > Status, or 'get system status' in the CLI).
  2. FortiOS: upgrade 7.2.0-7.2.1 to 7.2.2 or later and 7.0.0-7.0.6 to 7.0.7 or later (FG6000F and 7000E/F series: 7.0.5 B8001 or later). Follow the upgrade path from https://docs.fortinet.com/upgrade-tool.
  3. FortiProxy: upgrade 7.2.0 to 7.2.1 or later and 7.0.0-7.0.6 to 7.0.7 or later.
  4. FortiSwitchManager: upgrade 7.2.0 to 7.2.1 or later and 7.0.0 to 7.0.1 or later.
  5. If you cannot upgrade at once: disable the HTTP/HTTPS administrative interface, or on FortiOS limit it with a local-in policy that only accepts HTTP/HTTPS from a management address group and denies all others (see the workaround in FG-IR-22-377); on FortiProxy set the management port to 'dedicated-to management' with trust-ip.
  6. Never expose the administrative interface to the internet.
  7. Search the device logs for user=Local_Process_Access and check 'show system admin' for unknown admins such as 'fortigate-tech-support' and for SSH keys added to admin accounts; if found, treat the device as compromised and rotate credentials.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse