Forum Discussion
cookie encryption using Http profile and irule
Hi,
Tried cookie encryption using the irule and http profile. However, When ran a vulnerability scanner from the internet the cookie is leaking internal Ips etc. Not sure what am is missing? Please help.
ltm rule cookie_domain { partition test-dmz when HTTP_REQUEST { set domainname [HTTP::host] } }
ltm rule cookie_secure { partition test-dmz when HTTP_RESPONSE { foreach aCookie [HTTP::cookie names] { HTTP::cookie secure $aCookie enable } } }
ltm persistence cookie Com_cookie { app-service none defaults-from cookie expiration 0 }
create ltm profile http http-cookieencrypt defaults-from http encrypt-cookies add { Com_cookie } encrypt-cookie-secret "Password01"
ltm profile http http-cookieencrypt { app-service none defaults-from http encrypt-cookie-secret Password01 encrypt-cookies { Com_cookie } }
Hello,
You encrypt everything except persistence cookies. You should add encryption within the Cookie persistence profile assigned to your VS.
Recent Discussions
Related Content
* 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