Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
bf6fab494b77
Commit
ba7c1764
authored
Oct 11, 2013
by
Sytse Sijbrandij
Browse files
The cookie store is vulnerable to session replay attacks.
parent
392369c92bda
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
bf6fab49
...
...
@@ -14,6 +14,7 @@ v 6.2.0
- Extended User API to expose admin and can_create_group for user creation/updating (Boyan Tabakov)
- API: Remove group
- Avatar upload on profile page with a maximum of 200KB (Steven Thonus)
- Store the sessions in Redis instead of the cookie store
v 6.1.0
- Project specific IDs for issues, mr, milestones
...
...
config/initializers/session_store.rb
View file @
bf6fab49
# Be sure to restart your server when you modify this file.
Gitlab
::
Application
.
config
.
session_store
:cookie_store
,
key:
'_gitlab_session'
,
secure:
Gitlab
::
Application
.
config
.
force_ssl
,
httponly:
true
,
path:
(
Rails
.
application
.
config
.
relative_url_root
.
nil?
)
?
'/'
:
Rails
.
application
.
config
.
relative_url_root
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Gitlab::Application.config.session_store :active_record_store
Gitlab
::
Application
.
config
.
session_store
(
:redis_store
,
# Using the cookie_store would enable session replay attacks.
key:
'_gitlab_session'
,
secure:
Gitlab
::
Application
.
config
.
force_ssl
,
httponly:
true
,
path:
(
Rails
.
application
.
config
.
relative_url_root
.
nil?
)
?
'/'
:
Rails
.
application
.
config
.
relative_url_root
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment