Is devise vulnerable to session hijacking over a normal http:// connection? I am having trouble figuring it out from the documentation.
Is devise vulnerable to session hijacking over a normal http:// connection? I am having
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. Rails’ default way to manage sessions is susceptible to hijacking.
This is because it transmits to the client all the information the client further requires to identify itself in HTTP cookies. For the most part, anybody who can intercept the HTTP connection can assume the identity of the client from Rails’ perspective.
The simplest countermeasure is to only serve your site via HTTPS and have Rails issue
securecookies, which tells the browser only to send that cookie via HTTPS. The security guide has more helpful tips.