CWE一覧に戻る
CWE-483

ブロックの区切りが正しくない

Incorrect Block Delimitation
脆弱性 レビュー中
JA

このコードでは、2つ以上のステートメントを含むはずのブロックが明示的に区切られていないため、ロジック・エラーが発生する。

いくつかの言語では、中括弧(または他の区切り文字)はブロックのオプションです。区切り文字が省略されると、あるステートメントがブロックの中にあると思われるのに、そうではないという論理エラーを挿入することができる。場合によっては、このロジック・エラーはセキュリティに影響することがあります。

EN

The code does not explicitly delimit a block that is intended to contain 2 or more statements, creating a logic error.

In some languages, braces (or other delimiters) are optional for blocks. When the delimiter is omitted, it is possible to insert a logic error in which a statement is thought to be in a block but is not. In some cases, the logic error can have security implications.

Scope: Confidentiality, Integrity, Availability / Impact: Alter Execution Logic
Always use explicit block delimitation and use static-analysis technologies to enforce this practice.
MITRE公式ページ — CWE-483