SV-278394r1171934_rule
V-278394
SRG-APP-000246
NGNX-APP-001030
CAT II
10
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.
Add or modify the client_body_timeout, client_header_timeout and send_timeout directives to have a value of 10 seconds or lower. Setting this value in the http context will cover everything unless overridden in subsequent server or location contexts.
client_body_timeout 10s;
client_header_timeout 10s;
send_timeout 10s;
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.
Verify timeouts and send timeouts exist in config file and the timeout value of 10 seconds (or less) has been configured for client headers and body.
nginx -c <path to nginx config> -qT | grep timeout
client_body_timeout 10s;
client_header_timeout 10s;
send_timeout 10s;
If the client_header_timeout, client_body_timeout and send_timeout are unset or have values greater than 10, this is a finding.
V-278394
False
NGNX-APP-001030
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.
Verify timeouts and send timeouts exist in config file and the timeout value of 10 seconds (or less) has been configured for client headers and body.
nginx -c <path to nginx config> -qT | grep timeout
client_body_timeout 10s;
client_header_timeout 10s;
send_timeout 10s;
If the client_header_timeout, client_body_timeout and send_timeout are unset or have values greater than 10, this is a finding.
M
5720