Check: AS24-U2-000660
Apache Server 2.4 UNIX Site STIG:
AS24-U2-000660
(in versions v2 r4 through v1 r0.1)
Title
The Apache web server must set an inactive timeout for sessions. (Cat II impact)
Discussion
Leaving sessions open indefinitely is a major security risk. An attacker can easily use an already authenticated session to access the hosted application as the previously authenticated user. By closing sessions after a set period of inactivity, the Apache web server can make certain that those sessions that are not closed through the user logging out of an application are eventually closed. Acceptable values are 5 minutes for high-value applications, 10 minutes for medium-value applications, and 20 minutes for low-value applications.
Check Content
In a command line, run "httpd -M | grep -i Reqtimeout_module". If the "Reqtimeout_module" is not enabled, this is a finding.
Fix Text
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" Load the "Reqtimeout_module". Set the "RequestReadTimeout" directive.
Additional Identifiers
Rule ID: SV-214296r881509_rule
Vulnerability ID: V-214296
Group Title: SRG-APP-000295-WSR-000134
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-002361 |
The information system automatically terminates a user session after organization-defined conditions or trigger events requiring session disconnect. |
CCI-002391 |
The organization monitors organization-defined information system resources to determine if sufficient resources exist to prevent effective denial of service attacks. |