Forum

Notifications
Clear all

[Solved] HSTS on WebUI (Port 444)

8 Posts
3 Users
0 Reactions
519 Views
(@radiocooke)
Active Member
Joined: 7 months ago
Posts: 5
Topic starter  

Hello,

Is it possible to enable HSTS on the web UI (default port 444)? Our Nessus scanner is flagging the WebUI for not having HSTS and I have not found an option to enforce it. I suspect I could to it directly from Debian, but I wanted to check here first in case the direct method breaks things. 

Thanks,



   
Quote
emiliocm
(@emiliocm)
SKUDONET Engineer Moderator
Joined: 1 year ago
Posts: 63
 

Good day, HSTS is based in a Hedear replied by the server with a similar content as follow:

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

Currently we can't modify headers in our cherokee web server, modification headers plugin is not integrated, as soon we fix we will let you know. 

Regards!

 



   
ReplyQuote
(@radiocooke)
Active Member
Joined: 7 months ago
Posts: 5
Topic starter  

Hello, Any update on this?



   
ReplyQuote
(@antonio-rendon)
Member Admin
Joined: 1 year ago
Posts: 1
 

Good day,

Could you try adding this configuration option to the Cherokee config file and restarting the daemon?

vserver!1!hsts = 1

This option should add the HSTS header.

Thank you!

 



   
ReplyQuote
(@radiocooke)
Active Member
Joined: 7 months ago
Posts: 5
Topic starter  

Can you please provide a bit more specificity, so I am sure I'm editing the right file and don't break anything, thanks.


This post was modified 1 day ago by radiocooke

   
ReplyQuote
emiliocm
(@emiliocm)
SKUDONET Engineer Moderator
Joined: 1 year ago
Posts: 63
 

The directive indicated by Antonio should be tested in file:

/usr/local/skudonet/app/cherokee/etc/cherokee/cherokee.conf

You should enter the new line

vserver!1!hsts = 1

In the section vserver, i.e: 

.

.

server!tls!protocol!TLSv1 = 0
server!tls!protocol!TLSv1_1 = 0
server!user = root
vserver!1!directory_index = index.html
vserver!1!hsts = 1
vserver!1!document_root = /usr/local/skudonet/www
vserver!1!error_writer!filename = /var/log/cherokee-error.log
vserver!1!error_writer!type = file

.

.

Once you add the indicated directive, restart Cherokee:

/etc/init.d/cherokee stop

/etc/Init.d/cherokee start

 

Regards.

 



   
ReplyQuote
(@radiocooke)
Active Member
Joined: 7 months ago
Posts: 5
Topic starter  

This appears to be working, thank you very much!



   
ReplyQuote
emiliocm
(@emiliocm)
SKUDONET Engineer Moderator
Joined: 1 year ago
Posts: 63
 

Awesome! Thanks for the confirmation.

 

 



   
ReplyQuote
Share:

Download Skudonet ADC Load Balancer
Community Edition

Source Code

A versatile and installable ADC system designed for diverse vendor hardware.

DOWNLOAD SOURCE

Installable ISO 

Load Balancing as a Service alongside an ADC orchestration toolkit.

DOWNLOAD ISO
Download Community Edition

Download Community Edition

“We manage the information you provide with the sole aim of assisting with your requests or queries in regards to our products or services; applying the computer and security procedures to ensure its protection. Your data can be rectified or removed upon request but won’t be offered to any third parties, unless we are legally required to do so.” Responsible: SKUDONET SL - info@skudonet.com