CWE-683 · Słabość
Function Call With Incorrect Order of Arguments
- Abstrakcja
- Wariant
- Status
- Szkic
- Dodano
- 11 kwietnia 2008
- Ostatnia zmiana
- 11 grudnia 2025
Opis
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.
Skutki
Other
Quality Degradation
Zapobieganie
Implementation
Use the function, procedure, or routine as specified.
Przykłady podatności
- CVE-2006-7049 Application calls functions with arguments in the wrong order, allowing attacker to bypass intended access restrictions.
Słabość nadrzędna
Kiedy powstaje
- Implementation — This problem typically occurs when the programmer makes a typo, or copy and paste errors.
Dotyczy
Not Language-Specific
Wpis z katalogu CWE 4.20.