SV-278389r1172704_rule
V-278389
SRG-APP-000142
NGNX-APP-000510
CAT II
10
Edit the NGINX configuration file(s) and remove any unnecessary listen directives.
On listen directives that are organizationally defined to need TLS, ensure that the listen directive includes SSL and SSL redirection.
After saving the configuration, reload NGINX:
# nginx -s reload
Determine the path to NGINX config file(s):
# nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Review the configurations looking for any listen directives.
If listen directives are enabled but unnecessary, this is a finding.
Verify that listeners are using SSL and redirects to SSL-enabled listeners.
# nginx -c <path to nginx config> -qT | grep -A5 listen
listen 192.168.0.254:80;
return 301 https://$host/$request_uri;
}
`
listen 192.168.0.254:443 ssl default_server;
...
If the listen directive does not include SSL and there is not a redirect to an SSL listener, this is a finding.
V-278389
False
NGNX-APP-000510
Determine the path to NGINX config file(s):
# nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Review the configurations looking for any listen directives.
If listen directives are enabled but unnecessary, this is a finding.
Verify that listeners are using SSL and redirects to SSL-enabled listeners.
# nginx -c <path to nginx config> -qT | grep -A5 listen
listen 192.168.0.254:80;
return 301 https://$host/$request_uri;
}
`
listen 192.168.0.254:443 ssl default_server;
...
If the listen directive does not include SSL and there is not a redirect to an SSL listener, this is a finding.
M
5720