Skip to content
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

Session collision when TheHive & Cortex 2 share the same URL #70

Closed
saadkadhi opened this issue Apr 1, 2018 · 0 comments
Closed

Session collision when TheHive & Cortex 2 share the same URL #70

saadkadhi opened this issue Apr 1, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@saadkadhi
Copy link
Contributor

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) Ubuntu
Cortex version / git hash 2.0.1
Package Type DEB
Browser type & version FF

Problem Description

As reported by @3c7 and @jeromeleonard after building the training VM containing TheHive 3.0.7 and Cortex 2.0.1 and running some tests, having both applications sharing the same URL causes a session collision and all sorts of weird behaviors.

The initial debugging conducted by @To-om shows that If both applications have the same secret (play.http.secret.key) and the same user exists in both apps, a logged user on one application will automatically be authenticated on the other.

If they have different secrets or if a user exists in one app but not in the other, a request will invalidate the cookie and remove the session.

Possible Solutions

Choose different cookie names while managing the CSRF token without collisions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants