CWE一覧に戻る
CWE-393

誤ったステータスコードの返却

Return of Wrong Status Code
脆弱性 レビュー中
JA

関数や操作が、真の実行結果を示さない不正な戻り値やステータスコードを返し、その不正な結果に基づいて製品が動作を修正すること。

これは予測不可能な動作につながる可能性がある。もしその関数がセキュリティ上重要な決定を下したり、セキュリティ上重要な情報を提供したりするために使用されるのであれば、ステータス・コードが間違っていると、あるアクションが安全でない、あるいは正しいものでないにもかかわらず、製品が安全である、あるいは正しいものであると思い込んでしまう可能性がある。

EN

A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.

This can lead to unpredictable behavior. If the function is used to make security-critical decisions or provide security-critical information, then the wrong status code can cause the product to assume that an action is safe or correct, even when it is not.

Scope: Integrity, Other / Impact: Unexpected State; Alter Execution Logic
MITRE公式ページ — CWE-393