API Authentication Bypass in FortiClient EMS 7.4.5-7.4.6–CVE-2026-35616
FortiClient EMS 7.4.5-7.4.6 trusts user-controllable HTTP headers (X-SSL-CLIENT-VERIFY and X-SSL-CLIENT-CERT) as equivalent to Apache mod_ssl WSGI variables, and its certificate chain validation only compares subject/issuer strings without cryptographic signature verification. An unauthenticated attacker can spoof these headers and supply a forged certificate chain to gain authenticated API access with certificate-user role privileges.
bishopfox.com
Published on bishopfox.com
CVE-2026-35616 is an authentication bypass in FortiClient EMS 7.4.5 and 7.4.6. The Django authentication middleware accepts client certificate information from both trusted WSGI environment variables (set by Apache modssl) and user-controllable HTTP request headers, and Apache was never configured to strip the…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The Django application trusts user-controllable HTTP headers (X-SSL-CLIENT-VERIFY and X-SSL-CLIENT-CERT) as if they were set by Apache mod_ssl, and Apache was not configured to strip these headers; additionally, certificate chain validation performs only subject/issuer string matching with no cryptographic signature verification.
Impact
A successful exploit grants an unauthenticated attacker authenticated API access with certificate-user role privileges across 16 cert_chain_approved endpoint definitions, enabling actions such as quarantining endpoints, reconfiguring EMS settings, downloading ZTNA private keys, and exporting inventory data; the hotfix strips the spoofable headers at the Apache layer, but the string-only…
What the attacker needed
Network access to the EMS web interface on port 443; No credentials required
The fix
Fortinet released a hotfix that adds Apache RequestHeader unset directives to strip the spoofable headers; a permanent code-level fix is expected in version 7.4.7.
How it was found
- Send an HTTP request to a certificate-authenticated endpoint with the header X-SSL-CLIENT-VERIFY set to SUCCESS.
- Include a forged certificate chain in the X-SSL-CLIENT-CERT header, using certificates with subject and issuer Distinguished Name strings that match the embedded Fortinet root CAs.
- The application accepts the spoofed headers and the forged chain, assigning the attacker the certificate user role and granting authenticated API access.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a case where a web application (FortiClient EMS) is supposed to check for a client certificate to authenticate devices, but it also accepts a simple HTTP header that anyone can set. Because the server never strips that header, an attacker can pretend to have a valid certificate. Additionally, the certificate check only looks at names in the certificate, not whether it was really signed by Fortinet, so a fake certificate can pass.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.