Is it possible for a XSS attack to obtain HttpOnly cookies?
Posted
by Dan Herbert
on Stack Overflow
See other posts from Stack Overflow
or by Dan Herbert
Published on 2008-10-23T01:07:37Z
Indexed on
2010/05/27
17:51 UTC
Read the original article
Hit count: 258
Reading this blog post about HttpOnly cookies made me start thinking, is it possible for an HttpOnly cookie to be obtained through any form of XSS? Jeff mentions that it "raises the bar considerably" but makes it sound like it doesn't completely protect against XSS.
Aside from the fact that not all browser support this feature properly, how could a hacker obtain a user's cookies if they are HttpOnly?
I can't think of any way to make an HttpOnly cookie send itself to another site or be read by script, so it seems like this is a safe security feature, but I'm always amazed at how easily some people can work around many security layers.
In the environment I work in, we use IE exclusively so other browsers aren't a concern. I'm looking specifically for other ways that this could become an issue that don't rely on browser specific flaws.
© Stack Overflow or respective owner