CWE一覧に戻る
CWE-836

認証のためのパスワードの代わりにパスワード・ハッシュの使用

Use of Password Hash Instead of Password for Authentication
脆弱性 作成中
JA

本製品は、パスワードのハッシュをデータストアに記録し、クライアントからパスワードのハッシュを受け取り、提供されたハッシュとデータストアから取得したハッシュを比較する。

認証メカニズムの中には、サーバーの負荷を軽減したり、パスワードをネットワーク経由で送信しないようにするために、クライアントがパスワードのハッシュを生成することに依存しているものがある。しかし、クライアントがハッシュを生成するために使用される場合、攻撃者は、SQL インジェクションを使用して認証資格情報のデータベースを侵害したり、情報漏えいを悪用するなどして、ハッシュのコピーを取得することで認証をバイパスすることができる。その後、攻撃者は、元のパスワードを知らなくても、盗んだハッシュを再生するために変更されたクライアントを使用することができます。

その結果、クライアント側のハッシュに対するサーバ側の比較は、ハッシュを使用しないパスワードの使用以上のセキュリティを提供しない。

EN

The product records password hashes in a data store, receives a hash of a password from a client, and compares the supplied hash to the hash obtained from the data store.

Some authentication mechanisms rely on the client to generate the hash for a password, possibly to reduce load on the server or avoid sending the password across the network. However, when the client is used to generate the hash, an attacker can bypass the authentication by obtaining a copy of the hash, e.g. by using SQL injection to compromise a database of authentication credentials, or by exploiting an information exposure. The attacker could then use a modified client to replay the stolen hash without having knowledge of the original password.

As a result, the server-side comparison against a client-side hash does not provide any more security than the use of passwords without hashing.

Scope: Access Control / Impact: Bypass Protection Mechanism; Gain Privileges or Assume Identity
MITRE公式ページ — CWE-836