If you are unfamiliar with what the HTTPOnly cookie flag is or why your web apps should use it, please refer to the following resources -
* Mitigating Cross-site Scripting With HTTP-only Cookies - http://msdn.microsof...y/ms533046.aspx
* OWASP HTTPOnly Overview - http://www.owasp.org...ex.php/HTTPOnly
The bottom line is this - while this cookie option flag does absolutely nothing to prevent XSS attacks, it does significanly help to prevent the #1 XSS attack goal which is stealing SessionIDs. While HTTPOnly is not a "silver bullet" by any means, the potential ROI of implement it is quite large. Notice I said "potential" as in order to provide the intended protections, two key players have to work together -
* Web Applications - whose job it is to append the "HTTPOnly" flag onto all Set-Cookie response headers for SessionIDs, and
* Web Browsers - whose job it is to identify and enforce the security restrictions on the cookie data so that javascript can not access the contents.
The current challenges to realizing the security benefit of the HTTPOnly flag is that universal adoption in both web apps and browsers is still not there yet. For example, depending on your web app platform, you may not have an easy mechanism to implementing this feature. For example - in Java you could following the example provided here on the OWASP site - http://www.owasp.org...to_Set_HTTPOnly, however this doesn't work well for the JSESSIONID as it is added by the framework. Jim Manico has been fighting the good fight to try and get Apache Tomcat developers to implement his patch to add in HTTPOnly support - http://manicode.blog...cat-almost.html. The point is that with so many different web app development platforms, it isn't going to be easy to find support for this within every web app that you have to secure... READ MORE
Sponsored by: █ Sparkhost - Hosting Without Compromises! █ Hybrid Performance Web Hosting █ Spark Host Stream Hosting █ Hybrid IRC & IRCd Server Shell Accounts
Helping Protect Cookies with HTTPOnly Flag
Started by
Blake
, Dec 22 2008 06:27 AM
No replies to this topic
#1
Posted 22 December 2008 - 06:27 AM
Subscribe To Our RSS Feed For the Latest News from GovernmentSecurity.orgWould you like to earn money posting on GSO?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












