Umbra Wiki weakness weakness/CWE-483
Back to wiki

CWE-483 — Incorrect Block Delimitation

provenance: imported · CWE: CWE-483

CWE-483: Incorrect Block Delimitation

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Draft
Likelihood of exploit Low

Description

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.

Common consequences

  • Confidentiality, Integrity, Availability: Alter Execution Logic

Mitigations

Implementation — Always use explicit block delimitation and use static-analysis technologies to enforce this practice.

References

  • CWE page: https://cwe.mitre.org/data/definitions/483.html
  • CWE list: https://cwe.mitre.org/data/index.html