6
$\begingroup$

If the same SALT is used for many passwords on a Linux server, in what way is that a security risk?

Does the mean, that a user (which can change his own password) can calculate other users passwords?

Or is brute forcing a rainbow table still required?

$\endgroup$

2 Answers 2

6
$\begingroup$

A constant salt (or not using any salt) allows to do the same brute-force or dictionary attack on many passwords at once, instead of only at one at the same time. So you'll get an earlier "first match", and more matches at all for the same amount of work.

If the attacker wants a specific user's password, it is not faster at all (other than allowing precomputation of a hash→password table). Though if this attacked user has the same password with another user, this shows up, and a social (i.e. non-cryptographic) attack on this other user might be doable.

$\endgroup$
3
$\begingroup$

If two passwords match, e.g. because a user has multiple accounts and use the same password for all, this can easily be spotted if a constant "salt" is used.

Another way of looking at it is that a hash function that is applied to passwords with a constant salt, is equivalent to using a modified hash function without salt. In the case of the MD and SHA family of hash functions, you get such a modified hash function by modifying the initial state, round constants, round functions and message expansion.

$\endgroup$
2
  • $\begingroup$ So it doesn't allow a user to crack/calculate other users passwords? $\endgroup$ Commented Feb 14, 2012 at 16:17
  • 2
    $\begingroup$ Only to the extent not using any salt at all would, but then again, the attacker could create an account with the password "passw0rd" and spot who else is using it. $\endgroup$ Commented Feb 14, 2012 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.