My elasticsearch version is 8.19.20, OS - Ubuntu - 22.04
Due to nessus scan we have detected HSTS Missing From HTTPS Server (RFC 6797) vulnerability on 9200 port. can you please help here how to resolve this?
Please find the below screenshot
can you please let us know when this setting is available in elasticsearch itself instead of proxy?
Er, from the linked posts:
"There is no option to enable HSTS in Elasticsearch other than to place a proxy in front of it"
Seems pretty definitive and clear, though was written in 2021. Subsequently
"The answer ... is still applicable."
was written in 2024.
I would hope if that is now no longer the case someone from Elastic would wish to correct me. I don't recall it mentioned in any release notes either.
I really don't wish to get into a semantics debate, but I would not personally class this as a "vulnerability", at least not as that term is typically used nowadays. But Nessus is a great tool, and I don't criticize you for checking/asking.
Yes what @RainTown said: HSTS makes no sense in this context. I would not expect it ever to be added to Elasticsearch.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.