CWE一覧に戻る
CWE-187

部分文字列比較

Partial String Comparison
脆弱性 作成中
JA

この製品は、部分文字列のような一致があるかどうかを判断する前に、要因の一部だけを調べる比較を実行し、結果として弱点につながる。

例えば、攻撃者は、より大きな正しいパスワードの関連部分と一致する小さなパスワードを提供することで、認証に成功するかもしれない。

EN

The product performs a comparison that only examines a portion of a factor before determining whether there is a match, such as a substring, leading to resultant weaknesses.

For example, an attacker might succeed in authentication by providing a small password that matches the associated portion of the larger, correct password.

Scope: Integrity, Access Control / Impact: Alter Execution Logic; Bypass Protection Mechanism
Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.
MITRE公式ページ — CWE-187