Information
The HttpOnly attribute directs browsers to use cookies by way of the HTTP and HTTPS protocols only, ensuring that the cookie is not available by other means, such as JavaScript function calls. This setting mitigates the risk of attack utilizing Cross Site Scripting (XSS). This vulnerability allows an attacker to impersonate any authenticated user that has visited a page with the attack deployed, allowing them to potentially allowing the user to raise their permissions level. The vulnerability can be mitigated by setting HTTPOnly on the appropriate Access Policy.
NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.
Solution
Configure a policy in the BIG-IP ASM module to enable the HTTPonly flag.
Log in to the Configuration utility.
Navigate to Security >> Options >> Application Security >> Advanced Configuration >> System Variables
Create the variable cookie_httponly_attr.
Set the Parameter to 1.