Bamboo distributions from version 2.5.5 now enforce the HttpOnly flag on session ID cookies by default, as a means to minimise the risk of common XSS attacks. For more information about this feature, please refer to the Bamboo Security Advisory 2010-05-04.
If you are running the Bamboo EAR-WAR distribution on Tomcat (or another application server that is unsupported), it is likely that Bamboo's session ID cookies will not be transmitted with the HttpOnly flag. To reduce the risk of common XSS attacks, we recommend that you configure your application server to transmit HttpOnly session ID cookies.
To configure Bamboo EAR-WAR distribution running on Tomcat to use HttpOnly Session ID Cookies:
- Shutdown the Bamboo service running on Tomcat and the Tomcat application server.
- Open the
context.xmlfile of the Tomcat installation running Bamboo in a text editor.
This file is typically located in the
confsubdirectory of the main Tomcat installation directory. Add the following
Managerelement within theContextelement of this file:... <Context> ... <Manager useHttpOnly="true"/> ... </Context> ...
To disable HttpOnly Session ID cookies, either remove this
Managerelement or change the value of itsuseHttpOnlyparameter tofalse.- Save your changes to the
context.xmlfile. - Restart Bamboo.