SV-214267r1210995_rule
V-214267
SRG-APP-000435-WSR-000147
AS24-U1-000820
CAT II
10
Review the web server documentation and deployed configuration to determine where the process ID is stored and which utilities are used to start/stop the web server.
Determine where the "httpd.pid" file is located by running the following command:
find / -name "httpd.pid"
Run the following commands:
# cd <'httpd.pid location'>/
# chown <'service account'> httpd.pid
# chmod 644 httpd.pid
# cd /usr/sbin
# chown <'service account'> service apachectl
# chmod 755 service apachectl
Review the web server documentation and deployed configuration to determine where the process ID is stored and which utilities are used to start/stop the web server.
Locate the httpd.pid file and list its permission set and owner/group
# find / -name “httpd.pid
Output should be similar to: /run/httpd/httpd.pid
# ls -laH /run/httpd/httpd.pid
Output should be similar -rw-r--r--. 1 root root 5 Jun 13 03:18 /run/httpd/httpd.pid
If the file owner/group is not an administrative service account, this is a finding.
If permission set is not 644 or more restrictive, this is a finding.
Verify the Apache service utilities have the correct permission set and are user/group owned by an administrator account
# ls -laH /usr/sbin/service
Output should be similar: -rwxr-xr-x. 1 root root 3.2K Aug 19, 2019 /usr/sbin/service
# ls -laH /usr/sbin/apachectl
Output should be similar: -rwxr-xr-x. 1 root root 4.2K Oct 8, 2019 /usr/sbin/apachectl
If the service utilities owner/group is not an administrative service account, this is a finding.
If permission set is not 755 or more restrictive, this is a finding.
V-214267
False
AS24-U1-000820
Review the web server documentation and deployed configuration to determine where the process ID is stored and which utilities are used to start/stop the web server.
Locate the httpd.pid file and list its permission set and owner/group
# find / -name “httpd.pid
Output should be similar to: /run/httpd/httpd.pid
# ls -laH /run/httpd/httpd.pid
Output should be similar -rw-r--r--. 1 root root 5 Jun 13 03:18 /run/httpd/httpd.pid
If the file owner/group is not an administrative service account, this is a finding.
If permission set is not 644 or more restrictive, this is a finding.
Verify the Apache service utilities have the correct permission set and are user/group owned by an administrator account
# ls -laH /usr/sbin/service
Output should be similar: -rwxr-xr-x. 1 root root 3.2K Aug 19, 2019 /usr/sbin/service
# ls -laH /usr/sbin/apachectl
Output should be similar: -rwxr-xr-x. 1 root root 4.2K Oct 8, 2019 /usr/sbin/apachectl
If the service utilities owner/group is not an administrative service account, this is a finding.
If permission set is not 755 or more restrictive, this is a finding.
M
3996