Skip to main content
kwcheng__FTNT
Staff
Staff
Jul 1, 2025 4:50 AM UTC

Technical Tip: Enforcing RFC 6797 'HTTP Strict Transport Security (HSTS)'

Description This article describes how to enforce HSTS on FortiAuthenticator.
Scope FortiAuthenticator.
Solution

RFC 6797 (HSTS) is not a vulnerability, but a mitigation instead.

HSTS was introduced specifically to prevent SSL stripping and Man-in-the-middle attacks, as it is a web security policy mechanism that allows a web server to declare that browsers (or other complying user agents) should only interact with it using secure HTTPS connections.

 

The FortiAuthenticator is not enforcing HSTS by default, and this is an expected behavior. If the FortiAuthenticator is being scanned by any vulnerability checking tools, the following result might be seen:

 

The HTTPS server is 'not including' the 'Strict-Transport-Security' header in its responses. This means browsers might allow users to access the site via unencrypted HTTP after a redirect or in case of downgrade attacks.

 

Behind the scenes, the FortiAuthenticator will not send the following HTTP response header by default:

 

Strict-Transport-Security: max-age=31536000

 

To force FortiAuthenticator to respond with the HTTP response header above, it requires making the following changes:

Log in to FortiAuthenticator GUI and follow the steps below to enable 'HTTP Strict Transport Security (HSTS) Expiry'.

System -> Administration -> System Access -> enable HTTP Strict Transport Security (HSTS) Expiry.

image.png

 

This is a global setting. When having this option enabled, all other URLs related to the FortiAuthenticator, such as SAML SP, Captive Portal, and so on, will all return with this message in the HTTP response header.

 

To validate whether the HTTP response header contains this information, the following steps can be taken in the Chrome Browser:

  1. Open the URL in Chrome.
  2. Press F12 to open the Developer Tools.
  3. Refresh the page.
  4. Navigate to the Network tab of the Developer tool.
  5. Select the relevant request and open the Headers tab on the right.
  6. Scroll down to the Response Headers section, where it should show: Strict-Transport-Security: max-age=31536000.

 

The snapshot below is an example of how to find this information.

 

Capture.PNG

 

              Capture1.PNG

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024