Re:HTTP Response Splitting Vulnerability on reddit.com
by k0nad on Saturday January 15, 2011 @07:11PM
(#2108181)
also, add httponly to your cookies then javascript cant see them
[ Parent
| on HN ]
Re:HTTP Response Splitting Vulnerability on reddit.com
by tptacek on Saturday January 15, 2011 @07:14PM
(#2108186)
This is an almost cosmetic defense, because Javascript can still launch requests that will bear those cookies, even if it can't bank them for later.
HttpOnly isn't evil, but it's not a solution to the problem.
Re:HTTP Response Splitting Vulnerability on reddit.com
by peripitea on Saturday January 15, 2011 @09:51PM
(#2108487)
Security noob follow-up: How do you exploit the fact that your javascript can launch requests bearing those cookies? I'm assuming your end goal is to get access to those cookies. Do you do something like POST the contents of the original HTTP request headers that follow your injected \r\n (including said cookies) to a malicious server?
Re:HTTP Response Splitting Vulnerability on reddit.com
by jaysoo on Saturday January 15, 2011 @10:27PM
(#2108558)
The goal could be CSRF instead of actually reading the cookies. If there's a SessionID cookie for example, you can use JS to GET/POST the request to the server without needing to know the value of SessioID because the browser will send it as part of the request anyway.
The HTTP Response Splitting vulnerability can have many implications, XSS and CSRF attacks are just some examples.