SV-278383r1171901_rule
V-278383
SRG-APP-000038
NGNX-APP-000150
CAT II
10
Remove the user from privileged groups:
sudo gpasswd -d nginx sudo
sudo gpasswd -d nginx wheel
sudo gpasswd -d nginx admin
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.
Identify the NGINX runtime user:
grep -E '^\s*user\s+' /etc/nginx/nginx.conf
Expected output (example):
user nginx;
Ensure the user is not in a privileged group:
id nginx
Expected output:
uid=980(nginx) gid=979(nginx) groups=979(nginx)
The user should not be a member of sudo, wheel, admin, or similar elevated groups.
If the NGINX runtime user is a member of an elevated group, this is a finding.
V-278383
False
NGNX-APP-000150
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.
Identify the NGINX runtime user:
grep -E '^\s*user\s+' /etc/nginx/nginx.conf
Expected output (example):
user nginx;
Ensure the user is not in a privileged group:
id nginx
Expected output:
uid=980(nginx) gid=979(nginx) groups=979(nginx)
The user should not be a member of sudo, wheel, admin, or similar elevated groups.
If the NGINX runtime user is a member of an elevated group, this is a finding.
M
5720