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

User Password Salt is Constant #12

Open
KroniK907 opened this issue Jun 18, 2016 · 2 comments
Open

User Password Salt is Constant #12

KroniK907 opened this issue Jun 18, 2016 · 2 comments

Comments

@KroniK907
Copy link

Just noticed that in the ini.php on line 93 there is a static value for the salt of all the passwords. Since this project is open source, that essentially means that the salt is now irrelevant since its constant for any user.

Generating a random salt and storing it in the database, even if its just generated once during the site installation is vastly more secure than storing it as a static variable in ini.php. Ideally it should be generated for every user and then stored in the user table.

I wish I had time to fix this myself but I'm quite busy at the moment and wanted to point it out at least.

@Chdata
Copy link

Chdata commented Jun 18, 2016

Would it be good for people using it to change their salt?

@KroniK907
Copy link
Author

Yes. Changing the SM_SALT variable in ini.php would at least make your site have different hashes from another sourcebans website. However it still means that any two users that have the same password will still have the same hash for their hashed password. It should instead create a new salt for every single user and store that salt in the user database. That would make two users that have the same password end up with different hashes that are stored in the database.

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

No branches or pull requests

2 participants