SV-214251r612240_rule
V-214251
SRG-APP-000223-WSR-000011
AS24-U1-000470
CAT II
10
Edit the "mod_session.conf" file and find the "SessionCookieName" directive.
Set the "SessionCookieName" to "session path=/; HttpOnly; Secure; "
Example:
SessionCookieName session path=/; HttpOnly; Secure;
Restart Apache: apachectl restart
Note: For web servers acting as a public facing with static content that do not require authentication, this is Not Applicable.
Review the web server documentation and configuration to determine if cookies between the web server and client are accessible by applications or web servers other than the originating pair.
grep SessionCookieName <'INSTALL LOCATION'>/mod_session.conf
Confirm that the "HttpOnly" and "Secure" settings are present in the line returned.
Confirm that the line does not contain the "Domain" cookie setting.
Verify the "headers_module (shared)" module is loaded in the web server:
"# httpd -M
Verify " headers_module (shared)" is returned in the list of Loaded Modules from the above command."
If the "headers_module (shared)" is not loaded, this is a finding.
V-214251
False
AS24-U1-000470
Note: For web servers acting as a public facing with static content that do not require authentication, this is Not Applicable.
Review the web server documentation and configuration to determine if cookies between the web server and client are accessible by applications or web servers other than the originating pair.
grep SessionCookieName <'INSTALL LOCATION'>/mod_session.conf
Confirm that the "HttpOnly" and "Secure" settings are present in the line returned.
Confirm that the line does not contain the "Domain" cookie setting.
Verify the "headers_module (shared)" module is loaded in the web server:
"# httpd -M
Verify " headers_module (shared)" is returned in the list of Loaded Modules from the above command."
If the "headers_module (shared)" is not loaded, this is a finding.
M
3996