Security Expert advice please

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

23-Oct-12 07:48
I am building a cms with php, javascript, mysql, ect. I am doing this mostly for fun and learning. But, as a fan of Steve Gibson, I am trying to keep things very secure. And I advocate, T.N.O. So here's my question.

Case scenario:
A new user creates an account. In that account, we store a hash of their password which is salted twice. Salted once with a hash used for all users stored on the server. The second salt is created by hashing with another salt the time and date of the creation of their account. This second salt is stored in the database with the user login.

So now, each time the user logs in, their information is salted and hashed using sha512 with a universal salt<known to the server>, and a unique salt<known to the DB>, and checked against the values stored in the database.

Question: Do you see a weak point in this algorithm?
23-Oct-12 18:48
A weak point?

Yep, as always, the users.

Using salts and hashing will protect the passwords from being revealed if the database is attacked and make an automated attack on the login URL difficult.

But it is of little use for attacks on the form if the users are allowed to use "weak" passwords.

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/

 
New posts
Old posts

Follow Elated