Many Rails apps use the CookieStore method of storing sessions. The security of this method depends mainly on the security of the session secret key which is defined by default in config/environment.rb:
config.action_controller.session = {
:session_key => '_some_name_session',
:secret => 'long secret key'
}
Most people including myself keep this file in our SCM repo. Does this mean if I do some work at a coffee shop (or any open wireless connection) and commit my source, someone can sniff this secret and possibly start creating valid sessions for my application? Can't people sniff the files I commit? This seems like a pretty decent security hole.