VA scan shows HSTS vulnerability for ActiveGate, Managed or OneAgent

Self Service Summary

Security Team is asking to “enable HSTS”, is alerting that “HSTS is missing”, “Strict Transport Security Not Enforced”, or that the “Strict Transport Security header is not present in the response” for Dynatrace ActiveGate, Managed, RUM or OneAgent.

Issue Solution Tasks Alternative(s)
Security concern regarding HSTS (HTTP Strict Transport Security) for ActiveGate, Managed or OneAgent Explain that HSTS is not applicable here - see below Check below information and explain it to your Security Team Submit a support ticket if you need additional details or you face a different scenario

First of all, a quick recap of what the HSTS (HTTP Strict Transport Security) header is all about (taken from the RFC RFC 6797: HTTP Strict Transport Security (HSTS) | RFC Editor or also explained on Wikipedia HTTP Strict Transport Security - Wikipedia).

If the HSTS header is set in an HTTPS response, the User Agent (= Browser) should from then on only use trusted HTTPS connections for all requests to the same host for the specified amount of time.
 
We do not support enabling HSTS on Dynatrace Managed cluster nodes or on ActiveGates.

HSTS is in general for public Internet servers, and in general, Dynatrace Managed cluster nodes are internal-only servers. User browsers should not be connecting directly to ActiveGates in most use cases, and certainly not as a primary connection.
Note: To avoid showing up in security scans, Dynatrace adds HSTS for those ActiveGate endpoints: Environment API v1, Environment API v2, Configuration API, State API (/rest/state, /rest/health).

RUM: Since ActiveGate v1.303 the HTTP response header Strict-Transport-Security is added to all beacon requests. For HTTP beacon requests, the header is ignored see Strict-Transport-Security - HTTP | MDN.

As a last remark, the Dynatrace OneAgent is not aware of the HTTP server/app server configuration, so it doesn’t know if HSTS is generally enabled or not. The Agent cannot know for sure, because this header could potentially also be added on another network device (reverse proxy, load balancer,…).
For this reason, OneAgent cannot add this header as it would tell the HTTP client to only send requests via HTTPS to this site from then on. This could potentially break the web application if it’s not designed to serve all requests via HTTPS.

14 Likes

Thank you @stefanie_pachne for sharing this!

1 Like

Bookmarked, thanks for this.

1 Like

Thanks for sharing.

1 Like

thanks for sharing,

for more clarification, is there is any way to enable HSTS for Dynatrace managed cluster?

@IslamEsmail

We consider this a false positive alert because HSTS is in general for public Internet servers. Dynatrace Managed cluster nodes are considered internal-only servers. Thus, we do not support enabling HSTS on Dynatrace Managed cluster nodes.

Does this help?

1 Like

@stefanie_pachne

Thanks for clarification , and yes for me its help, lets see how it goes with the security geeks

1 Like

@stefanie_pachne: how about Cluster ActiveGates serving as the public endpoint? They receive mobile device traffic from the internet. If there is an upstream load balancer in front of them, then it is not a problem, if HSTS can not be enabled on those ActiveGates?

In AG 1.303, HSTS has been enabled on the RUM endpoints.

2 Likes

Hello @Zbigniew_Wroble

How to verify and configure HSTS, as we do not see even with the version 1.339?

Regards,

Babar Qayyum