Rule ID
SV-240062r879609_rule
Version
V1R2
CCIs
Data used to authenticate, especially passwords, needs to be protected at all times, and encryption is the standard method for protecting authentication data during transmission. Even when data is passed through a load balancer, data used to authenticate users must be sent via SSL/TLS.
At the command line execute the following command:
cat /etc/haproxy/conf.d/20-vcac.cfg | awk '$0 ~ /bind.*:80/ || $0 ~ /redirect.*ssl_fc/ {print}'
If the command does not return the two lines below, this is a finding.
bind 0.0.0.0:80
redirect scheme https if !{ ssl_fc }Navigate to and open /etc/haproxy/conf.d/20-vcac.cfg
Navigate to and configure the "frontend https-in" section with the following two values:
bind 0.0.0.0:80
redirect scheme https if !{ ssl_fc }