Skip to content

Fix : Avoid user collision. #585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2017
Merged

Conversation

guillaume-u
Copy link

When users are requesting a page in the same time, a user collision appears.

How to reproduce it :

  • Login as user1 and get the cookie : user_session ;
  • Login as user2 ;
  • Start a loop, requesting a Shinken page with the user_session cookie (see above how to do it)
  • Refresh your webpage (as user2), you will be connected as user1

How to make the loop request :

SHINKEN_URL="YOUR SHINKEN URL"
while true
do
  curl "$SHINKEN_URL/gotfirstdata" -H 'Cookie: user_session="YOUR SESSION COOKIE"'
done  

@maethor maethor merged commit ba5c6c7 into shinken-monitoring:develop Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants