Forum Discussion
AshuA_246482
Nimbostratus
Nov 29, 2017How to fix secure cookie parameter - finding of pen test
We had a pen test get done on newly deployed application. and one of their finding is
When cookies are set which are used on the encrypted (HTTPS) part of the website, the Secure cookie paramete...
Andy_McGrath
Cumulonimbus
Nov 29, 2017If you cannot update the back end application/web server to add them can do the following in an iRule in the Response.
when HTTP_RESPONSE {
if {[HTTP::cookie exists “newappcookie”]} {
HTTP::cookie secure “newappcookie” enable
HTTP::cookie httponly “newappcookie” enable
}
}
Might also be able to do it using a Policy.
You might also need to set the cookie version to 0 with the following line before setting secure and httponly flags
HTTP::cookie version “newappcookie” 0
Test it with and without see which works.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
