CWE一覧に戻る
CWE-192

整数強制エラー

Integer Coercion Error
脆弱性 作成中
JA

整数の強制とは、プリミティブなデータ型の型キャスト、拡張、切り捨てに関する一連の欠陥のこと。

いくつかの欠陥は整数強制エラーに分類される。たいていの場合、これらのエラーはそれ自体、可用性とデータ完全性の問題にしかならない。しかし、状況によっては、バッファ・オーバーフロー状態のような、より複雑なセキュ リティ関連の欠陥につながることもあります。

EN

Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types.

Several flaws fall under the category of integer coercion errors. For the most part, these errors in and of themselves result only in availability and data integrity issues. However, in some circumstances, they may result in other, more complicated security related flaws, such as buffer overflow conditions.

Scope: Availability / Impact: DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Crash, Exit, or Restart
Scope: Integrity, Confidentiality, Availability / Impact: Execute Unauthorized Code or Commands
Scope: Integrity, Other / Impact: Other
A language which throws exceptions on ambiguous data casts might be chosen.
Design objects and program flow such that multiple or complex casts are unnecessary
Ensure that any data type casting that you must used is entirely understood in order to reduce the plausibility of error in use.
MITRE公式ページ — CWE-192