Modern cybersecurity relies heavily on the assumption that identity is the new perimeter, yet a discovery in Fortinet’s infrastructure has challenged the absolute reliability of these digital gates. The vulnerability allows a Man-in-the-Middle attacker to intercept sensitive information such as session tokens by masquerading as a legitimate backend application server. This specific flaw, tracked as CVE-2024-50853, targets the Zero Trust Network Access component within the FortiOS and FortiProxy environments. By failing to adequately validate the authenticity of the backend server’s certificate, the system inadvertently permits unauthorized actors to position themselves between the user and the requested data. For enterprises that have consolidated their security around a single vendor, such a breach in the trust model represents a profound risk. The flaw essentially bypasses the foundational promise of ZTNA, which is to verify every connection point before granting access. This high-severity vulnerability highlights a critical failure in the verification process.
Technical Breakdown: The Failure of Certificate Verification
The underlying mechanism of the CVE-2024-50853 vulnerability involves a breakdown in the trust chain that occurs when the FortiGate or FortiProxy gateway communicates with internal applications. In a standard ZTNA deployment, the security gateway is responsible for decrypting incoming traffic from the user, inspecting it for threats, and then re-encrypting it before sending it to the backend server. However, during this re-encryption phase, the gateway must verify that the backend server is exactly who it claims to be by checking its digital certificate. If this verification step is skipped or improperly implemented, an attacker who has already gained a foothold within the local network can present a fraudulent certificate. Because the gateway does not flag the certificate as invalid, it establishes a secure-looking connection with the attacker’s machine instead of the real application server. This oversight transforms the security gateway from a protective barrier into a tool that helps the attacker bridge the gap into restricted zones.
This vulnerability specifically affects several iterations of the Fortinet ecosystem, including FortiOS versions 7.2.0 through 7.2.11 and 7.4.0 through 7.4.5, as well as several versions of FortiProxy. In these environments, an attacker sitting in a privileged network position can capture session tokens that are meant for legitimate use. These tokens are highly valuable because they allow a malicious actor to bypass subsequent authentication prompts, effectively hijacking a user’s session without needing their password or multi-factor authentication codes. This type of attack is particularly dangerous because it occurs after the initial user authentication has succeeded, meaning it can bypass many traditional perimeter defenses. The severity of this issue is compounded by the fact that ZTNA is often the primary defense against such lateral movement within a corporate network. By exploiting this flaw, an attacker effectively neutralizes the security layer that was designed to prevent unauthorized internal access throughout the entire corporate stack.
Mitigation Strategies: Securing the Perimeter and Beyond
To address this security gap, Fortinet has released critical updates that administrators must apply to their infrastructure immediately to restore the integrity of their ZTNA tunnels. The fix involves a comprehensive update to the certificate validation logic within the gateway’s proxy service, ensuring that all backend connections undergo a rigorous check against a trusted root certificate authority. Organizations should transition their systems to FortiOS version 7.2.12 or 7.4.6 and FortiProxy 7.2.13 or 7.4.6 to eliminate the risk of session token theft via this specific vector. Beyond the software update itself, it is recommended that security teams audit their current certificate configurations to ensure that strict-certificate-check settings are enabled where applicable. Implementing these changes prevents the gateway from accepting self-signed or invalid certificates from backend services. This proactive approach ensures that the encrypted path between the gateway and the application remains secure against interception by unauthorized parties.
Administrators took decisive action by deploying the latest firmware versions and re-validating the trust certificates across all internal application servers to ensure end-to-end security. They also integrated more robust network monitoring tools to detect unauthorized ARP spoofing or DNS poisoning attempts that often precede a Man-in-the-Middle attack. Moving forward, the focus shifted toward a more granular posture where even the internal connections between trusted gateways and backend servers were scrutinized with the same intensity as external user requests. Security teams conducted thorough reviews of their incident response plans to include specific protocols for handling compromised session tokens discovered during the 2026 audit cycle. These measures successfully reduced the attack surface and ensured that the organization’s transition to a fully decentralized security model remained resilient. By adopting a policy of continuous verification and automated scanning, companies maintained a high standard of data protection for their users and their assets.






