Skip to main content
Version: v1

Missing Strict-Transport-Security Header

Missing HSTS

What is it?

HTTP Strict Transport Security (HSTS) is a web security policy mechanism whereby a API/server declares that complying user agents (such as a web browser) are to interact with it using only secure HTTPS connections (i.e. HTTP layered over TLS/SSL).

HSTS is an IETF standards track protocol and is specified in RFC 6797.

References

OWASP API TOP-10 A7
HSTS Cheat Sheet

Test case FAQs

When is this test case applicable?

This is applicable for all API endpoints when the Baseline security category is enabled in test plans.

How does it work?

Responses sent by the API server are analyzed for missing HSTS header.

What is the solution?

Ensure that your API/server, load balancer, etc. is configured to enforce Strict-Transport-Security.