The use of password systems as the primary means of authentication may be subject to several flaws or shortcomings, each reducing the effectiveness of the mechanism.
Impact: Bypass Protection MechanismGain Privileges or Assume Identity
A password authentication mechanism error will almost always result in attackers being authorized as valid users.
c
//Login if hash matches stored hash* if (equal(ctext, secret_password())) { ``` login_user(); } }
java
//Login if hash matches stored hash* if (equal(digest,secret_password())) { ``` login_user(); }
High