We found that the Authentication/session cookies did not have the Secure Flag attribute set in the Edge UI.
Impact: If secure flag is not set, a cookie is considered safe to be sent in the clear over unsecured channels; allowing an attacker the ability to capture and replay the cookie or hijack an active session.
Here are the Cookies where we don't see Secure flag:
Set-Cookie: PLAY_SESSION=; Max-Age=0; Expires=Thu, 24 May 2018 21:27:33 GMT; Path=/platform Set-Cookie: PLAY_FLASH=url=%2F; Path=/; HTTPOnly Set-Cookie: PLAY_SESSION=<token>csrfToken=<token>; MaxAge=86400; Expires=Fri, 25 May 2018 21:27:33 GMT; Path=/; HTTPOnly</div>
Can you please let me know how to make the Authentication cookies secure ?
Solved! Go to Solution.
To set Secure flag for Authentication Cookies, we need to follow the below steps:
/opt/apigee/customer/application/ui.properties
file in an editor. If the file does not exist, create it./opt/apigee/customer/application/ui.properties
file as shown below:
conf_application_session.secure=true
/opt/apigee/xapigee-service/bin/apigee-service edge-ui restart
Post this change, we could see that second PLAY_SESSION cookie had the Secure flag.
You can run the curl command to check the values of Cookies.
curl -i https://<EdgeUI URL>
Here's some context on which information has to be secure:
The PLAY_SESSION can be of two types: