CVE Vulnerabilities

CVE-2022-22305

Improper Validation of Certificate with Host Mismatch

Published: Sep 01, 2023 | Modified: Nov 21, 2024
CVSS 3.x
4.2
MEDIUM
Source:
NVD
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

An improper certificate validation vulnerability [CWE-295] in FortiManager 7.0.1 and below, 6.4.6 and below; FortiAnalyzer 7.0.2 and below, 6.4.7 and below; FortiOS 6.2.x and 6.0.x; FortiSandbox 4.0.x, 3.2.x and 3.1.x may allow a network adjacent and unauthenticated attacker to man-in-the-middle the communication between the listed products and some external peers.

Weakness

The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.

Affected Software

Name Vendor Start Version End Version
Fortianalyzer Fortinet 6.0.0 (including) 6.0.12 (including)
Fortianalyzer Fortinet 6.2.9 (including) 6.4.7 (including)
Fortianalyzer Fortinet 7.0.0 (including) 7.0.0 (including)
Fortianalyzer Fortinet 7.0.1 (including) 7.0.1 (including)
Fortianalyzer Fortinet 7.0.2 (including) 7.0.2 (including)
Fortimanager Fortinet 6.0.0 (including) 6.0.12 (including)
Fortimanager Fortinet 6.2.0 (including) 6.2.11 (including)
Fortimanager Fortinet 6.4.0 (including) 6.4.6 (including)
Fortimanager Fortinet 7.0.0 (including) 7.0.0 (including)
Fortimanager Fortinet 7.0.1 (including) 7.0.1 (including)
Fortisandbox Fortinet 3.0.0 (including) 3.0.7 (including)
Fortisandbox Fortinet 3.1.0 (including) 3.1.5 (including)
Fortisandbox Fortinet 3.2.0 (including) 3.2.4 (including)
Fortisandbox Fortinet 3.0.1 (including) 3.0.1 (including)
Fortisandbox Fortinet 4.0.0 (including) 4.0.0 (including)
Fortisandbox Fortinet 4.0.1 (including) 4.0.1 (including)
Fortisandbox Fortinet 4.0.2 (including) 4.0.2 (including)
Fortios Fortinet 5.6.10 (including) 5.6.14 (including)
Fortios Fortinet 6.0.0 (including) 6.0.17 (including)
Fortios Fortinet 6.2.0 (including) 6.2.15 (including)

Extended Description

Even if a certificate is well-formed, signed, and follows the chain of trust, it may simply be a valid certificate for a different site than the site that the product is interacting with. If the certificate’s host-specific data is not properly checked - such as the Common Name (CN) in the Subject or the Subject Alternative Name (SAN) extension of an X.509 certificate - it may be possible for a redirection or spoofing attack to allow a malicious host with a valid certificate to provide data, impersonating a trusted host. In order to ensure data integrity, the certificate must be valid and it must pertain to the site that is being accessed. Even if the product attempts to check the hostname, it is still possible to incorrectly check the hostname. For example, attackers could create a certificate with a name that begins with a trusted name followed by a NUL byte, which could cause some string-based comparisons to only examine the portion that contains the trusted name. This weakness can occur even when the product uses Certificate Pinning, if the product does not verify the hostname at the time a certificate is pinned.

Potential Mitigations

References