Forum Moderators: phranque
Ruby on Rails Cookiestore Vulnerability
Back in September, security researcher G.S. McNamara warned that certain Ruby on Rails versions were plagued by a vulnerability that allowed hackers to hijack user sessions. Last week, the researcher provided a list of website that were vulnerable.
The security hole stems from the use of CookieStore, which holds the user session hash in the web browser as a cookie. However, even after a new cookie is created, the old one is still valid, which means that it can be used to hijack user accounts.
This is known as insufficient session expiration weakness. The expert warns that this type of flaw is particularly dangerous on websites that don’t use SSL. Ruby on Rails Cookiestore Vulnerability [news.softpedia.com]
It’s also worth noting that while only Ruby on Rails versions older than 4.0 don’t encrypt cookies by default, cybercriminals can abuse even encrypted cookies to hijack accounts.