-
-
Notifications
You must be signed in to change notification settings - Fork 136
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 token is related to the user agent string #713
Comments
The token contains your username and password. If we would store that info on server, everyone might could read it (based on security of server or hacked). So the data is encrypted with a salt from server and your user agent token. This way when data is logged or backup, someone needs to know more then just server salt. It is just a way to secure it better and protect data. |
P.S. you can also read here why i made changes. |
For me, user agent is not unguessable at all ; you can quickly try a brute force with the most common and updated browser user agent. What do you think about it? Can't we use a random string generated by the JavaScript client and stored in the local session instead of the user agent ? |
There you go 😉 When localStorage or crypto.getRandomValues() fails, it will fall back to the User-Agent string |
So if it is a fallback to use the user agent instead of random values, it means something is not working for me ? How can I investigate to know what the problem is ? (Fail of localStorage or crypto.getRandomValues() ?) |
No, i've added your idea for next release |
Sorry I have missed you commit ! Thanks ! |
Describe the bug
Session token is related to the user agent string.
I'm not sure it is useful, from security point of view.
It is annoying when I'm in Firefox Developers Options "adaptative view".
I imagine you also lost your session when the browser is upgraded.
Expected behavior
The session token is not related to the user agent string.
Screenshots
Jeton invalide
Please complete the following information:
The text was updated successfully, but these errors were encountered: