SV-102623r1_rule
V-92535
SRG-APP-000223-WSR-000011
AS24-W2-000470
CAT II
10
Add this line to the "httpd.conf" file:
Header always edit Set-Cookie ^(.*)$ $1;HttpOnly;secure
Add the secure attribute to the JavaScript set cookie:
function setCookie() { document.cookie = "ALEPH_SESSION_ID = $SESS; path = /; secure"; }
"HttpOnly" cannot be used since by definition this is a cookie set by JavaScript.
Restart www_server and Apache.
Review the <'INSTALLED PATH'>\conf\httpd.conf file.
If "HttpOnly; secure" is not configured, this is a finding.
Review the code. If when creating cookies, the following is not occurring, this is a finding:
function setCookie() { document.cookie = "ALEPH_SESSION_ID = $SESS; path = /; secure"; }
V-92535
False
AS24-W2-000470
Review the <'INSTALLED PATH'>\conf\httpd.conf file.
If "HttpOnly; secure" is not configured, this is a finding.
Review the code. If when creating cookies, the following is not occurring, this is a finding:
function setCookie() { document.cookie = "ALEPH_SESSION_ID = $SESS; path = /; secure"; }
M
3419