tc Server VCO must set the useHttpOnly parameter.

From VMware vRealize Automation 7.x tc Server Security Technical Implementation Guide

Part of SRG-APP-000439-WSR-000154

Associated with: CCI-002418

SV-100819r1_rule tc Server VCO must set the useHttpOnly parameter.

Vulnerability discussion

A cookie can be read by client-side scripts easily if cookie properties are not set properly. By allowing cookies to be read by the client-side scripts, information such as session identifiers could be compromised and used by an attacker who intercepts the cookie. Setting cookie properties (i.e. HttpOnly property) to disallow client-side scripts from reading cookies better protects the information inside the cookie.As a Tomcat derivative, tc Server contains a Context object, which represents a web application running within a particular virtual host. One of the configurable parameters of the Context object will prevent the tc Server cookies from being accessed by JavaScript from another site.

Check content

At the command prompt, execute the following command: grep useHttpOnly /etc/vco/app-server/context.xml If the value of "useHttpOnly" is not set to "true" or is missing, this is a finding.

Fix text

Navigate to and open /etc/vco/app-server/context.xml. Navigate to the node. Add the 'useHttpOnly="true"' setting to the node. Note: The node should be configured per the following:

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer