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

Hardcoded session encryption key #14

Open
mr-ma opened this issue Apr 17, 2018 · 1 comment
Open

Hardcoded session encryption key #14

mr-ma opened this issue Apr 17, 2018 · 1 comment
Assignees
Labels

Comments

@mr-ma
Copy link
Owner

mr-ma commented Apr 17, 2018

In taxonomy server there is a hardcoded string for session encryption key.
This is the same string as in the documentation of the scs library. So, chances are high that attackers already try this out to defeat the session management.

var sessionManager = scs.NewCookieManager("u46IpCV9y5Vlur8YvODJEhgOY8m9JVE4")

Also, the session is not being used in the secure mode.
We need to uncomment the following line and test the service.
//sessionManager.Secure(true)

@mr-ma mr-ma added the bug label Apr 17, 2018
@mr-ma mr-ma self-assigned this Apr 17, 2018
@FelixHuberFX
Copy link
Collaborator

Instead of using the default cookiestore method, the sessions are now being stored in the mysql database.
This solves the first issue.

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