SV-278397r1171943_rule
V-278397
SRG-APP-000380
NGNX-APP-001590
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.
Ensure permissions on the configuration directory do not allow write permissions for "Other":
# chmod o-w /etc/nginx
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.
Check the permissions on the directory:
# ls -la /etc
drwxr-x-r-x 3 root root 4096 Sep 16 18:28 nginx
If permissions to write are allowed for "Other", this is a finding.
V-278397
False
NGNX-APP-001590
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.
Check the permissions on the directory:
# ls -la /etc
drwxr-x-r-x 3 root root 4096 Sep 16 18:28 nginx
If permissions to write are allowed for "Other", this is a finding.
M
5720