CWE一覧に戻る
CWE-683

引数の順序が正しくない関数呼び出し

Function Call With Incorrect Order of Arguments
脆弱性 レビュー中
JA

製品が関数、プロシージャ、ルーチンを呼び出すが、呼び出し側が間違った順序で引数を指定するため、結果として弱点が生じる。

この弱点は、言語によってはコンパイラによって検出されることもあるが、C言語のフォーマット文字列のように、呼び出される関数が可変の数値や型の引数を受け取る場合に、より頻繁に発生する可能性がある。

EN

The product calls a function, procedure, or routine, but the caller specifies the arguments in an incorrect order, leading to resultant weaknesses.

While this weakness might be caught by the compiler in some languages, it can occur more frequently in cases in which the called function accepts variable numbers or types of arguments, such as format strings in C. It also can occur in languages or environments that do not enforce strong typing.

Scope: Other / Impact: Quality Degradation
Use the function, procedure, or routine as specified.
MITRE公式ページ — CWE-683