AS24-U1-000470 - Cookies exchanged between the Apache web server and client, such as session cookies, must have security settings that disallow cookie access outside the originating Apache web server and hosted application - SessionCookieName Domain

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Cookies are used to exchange data between the web server and the client. Cookies, such as a session cookie, may contain session information and user credentials used to maintain a persistent connection between the user and the hosted application since HTTP/HTTPS is a stateless protocol.

When the cookie parameters are not set properly (i.e., domain and path parameters), cookies can be shared within hosted applications residing on the same web server or to applications hosted on different web servers residing on the same domain.

Solution

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Server_2-4_UNIX_Y22M01_STIG.zip

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-23(3), CAT|II, CCI|CCI-001664, Rule-ID|SV-214251r612240_rule, STIG-ID|AS24-U1-000470, STIG-Legacy|SV-102767, STIG-Legacy|V-92679, Vuln-ID|V-214251

Plugin: Unix

Control ID: 295551780974b7c02267540b3ca7942ac45ce83cedd28f15c2b3cb97c865621a