Open andrewrk opened 9 years ago
Currently GB creates the dbs world-readable. As a first pass at this issue it should probably create them with mode 600.
mode 600 isn't going to happen on those db files (see the issue linked above). so the official recommendation is going to be: put groovebasin db/config in a directory with appropriate permissions.
Since this is so frequently done incorrectly, I hope you won't be offended if this post is just noise.
A simple hash is not sufficient - salt is necessary. Use of a Key Derivation Function like http://en.wikipedia.org/wiki/Scrypt is recommended. A quick googling turns up http://www.sitepoint.com/risks-challenges-password-hashing/ with a good explanation.
Here are two attack vectors:
Solution: store hashed passwords in the database.