FortiOS SSL VPN FortiToken MFA Bypass via Username Case Changes
CVE-2020-12812 is an improper authentication vulnerability in Fortinet FortiOS SSL VPN affecting FortiOS 6.4.0, 6.2.0 through 6.2.3, and 6.0.9 and earlier. In affected configurations, inconsistent username case handling between local FortiGate accounts and remote LDAP authentication allows a case-altered username to evade matching a local FortiToken-protected account and authenticate through a secondary LDAP group policy instead. An attacker possessing valid directory credentials can consequently log in without supplying the required second factor. The vulnerability has been exploited in the wild, including by ransomware operators.
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 defeats locally configured FortiToken MFA and permits unauthorized use of an otherwise valid account. Access is determined by the matching authentication policy and account permissions: it can expose internal resources through VPN access and, where applicable administrative authentication policies permit, provide firewall administrative access. Resulting access can facilitate reconnaissance, credential theft, lateral movement, data exfiltration, or ransomware deployment; these are potential follow-on activities rather than capabilities directly supplied by the vulnerability.
If you can’t patch tonight, do this now.
Where the attribute is available, configure affected user-local entries with 'set username-case-sensitivity disable' so capitalization changes cannot evade the local MFA-protected account match. No vendor workaround is specified for versions lacking this attribute. Remove unnecessary secondary LDAP group authentication paths and enforce MFA at the identity layer across alternate authentication paths. Monitor case-varied login attempts, unexpected LDAP policy matches, and successful authentication without corresponding second-factor activity.
Patch, then assume compromise.
Upgrade to FortiOS 6.0.10, 6.2.4, or 6.4.1 or a later applicable fixed release, preferably a currently supported release. Additionally, manually set username-case-sensitivity to disable on affected user-local entries that combine remote authentication with FortiToken MFA. Upgrading alone without the configuration change does not satisfy the vendor's prevention instructions. Audit local MFA-enabled accounts, LDAP backends, and group-policy references. If exploitation is suspected or confirmed, investigate unauthorized access and perform a comprehensive credential reset covering FortiGate and LDAP/Active Directory accounts.
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.
121 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.