Katalog CWE

CWE-234 · Słabość

Failure to Handle Missing Parameter

Abstrakcja
Wariant
Status
Niekompletny
Ryzyko wykorzystania
wysokie
Dodano
19 lipca 2006
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

If too few arguments are sent to a function, the function will still pop the expected number of arguments from the stack. Potentially, a variable number of arguments could be exhausted in a function as well.

Skutki

  • Integrity, Confidentiality, Availability, Access Control

    Execute Unauthorized Code or Commands; Gain Privileges or Assume Identity

    There is the potential for arbitrary code execution with privileges of the vulnerable program if function parameter list is exhausted.

  • Availability

    DoS: Crash, Exit, or Restart

    Potentially a program could fail if it needs more arguments then are available.

Zapobieganie

  • Build and Compilation

    This issue can be simply combated with the use of proper build process.

  • Implementation

    Forward declare all functions. This is the recommended solution. Properly forward declaration of all used functions will result in a compiler error if too few arguments are sent to a function.

Przykłady podatności

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Not Language-Specific, Not Technology-Specific

Uwagi

This entry will be deprecated in a future version of CWE. The term "missing parameter" was used in both PLOVER and CLASP, with completely different meanings. However, data from both taxonomies was merged into this entry. In PLOVER, it was meant to cover malformed inputs that do not contain required parameters, such as a missing parameter in a CGI request. This entry's observed examples and classification came from PLOVER. However, the description, demonstrative example, and other information are derived from CLASP. They are related to an incorrect number of function arguments, which is already covered by CWE-685.

Wpis z katalogu CWE 4.20.