SV-214229r960735_rule
V-214229
SRG-APP-000001-WSR-000002
AS24-U1-000020
CAT II
10
If the modules are not installed, install any missing packages.
Add the following lines to the "httpd.conf" file:
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule session_module modules/mod_session.so
Additional documentation can be found at:
https://httpd.apache.org/docs/2.4/mod/mod_usertrack.html
https://httpd.apache.org/docs/2.4/mod/mod_session.html
Restart Apache: apachectl restart
Issue the following command:
httpd -M |grep -E 'session_module|usertrack'
Expected output:
usertrack_module (shared)
session_module (shared)
If results do not return both "usertrack_module (shared)" and "session_module (shared)", this is a finding.
Alternatively, determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file:
# apachectl -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Note: The apachectl front end is the preferred method for locating the Apache httpd file. For some Linux distributions, "apache2ctl -V" or "httpd -V" can also be used.
Search for the "session_module" and "usertrack_module" directives:
# cat /<path_to_file>/httpd.conf | grep -i "session_module"
# cat /<path_to_file>/httpd.conf | grep -i "usertrack_module"
If "session_module" and "usertrack_module" are not enabled or do not exist, this is a finding.
V-214229
False
AS24-U1-000020
Issue the following command:
httpd -M |grep -E 'session_module|usertrack'
Expected output:
usertrack_module (shared)
session_module (shared)
If results do not return both "usertrack_module (shared)" and "session_module (shared)", this is a finding.
Alternatively, determine the location of the "HTTPD_ROOT" directory and the "httpd.conf" file:
# apachectl -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Note: The apachectl front end is the preferred method for locating the Apache httpd file. For some Linux distributions, "apache2ctl -V" or "httpd -V" can also be used.
Search for the "session_module" and "usertrack_module" directives:
# cat /<path_to_file>/httpd.conf | grep -i "session_module"
# cat /<path_to_file>/httpd.conf | grep -i "usertrack_module"
If "session_module" and "usertrack_module" are not enabled or do not exist, this is a finding.
M
3996