Unvalidated Function Hook Arguments |
Weakness ID: 622 (Weakness Variant) | Status: Draft |
Description Summary
A product adds hooks to user-accessible API functions, but does not properly validate the arguments. This could lead to resultant vulnerabilities.
Extended Description
Such hooks can be used in defensive software that runs with privileges, such as anti-virus or firewall, which hooks kernel calls. When the arguments are not validated, they could be used to bypass the protection scheme or attack the product itself.
Reference | Description |
---|---|
CVE-2007-0708 | DoS in firewall using standard Microsoft functions |
CVE-2006-7160 | DoS in firewall using standard Microsoft functions |
CVE-2007-1376 | function does not verify that its argument is the proper type, leading to arbitrary memory write |
CVE-2007-1220 | invalid syscall arguments bypass code execution limits |
CVE-2006-4541 | DoS in IDS via NULL argument |
Ensure that all arguments are verified, as defined by the API you are protecting. |
Drop privileges before invoking such functions, if possible. |
Ordinality | Description |
---|---|
Primary | (where the weakness exists independent of other weaknesses) |
Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
---|---|---|---|---|
ChildOf | ![]() | 20 | Improper Input Validation | Development Concepts (primary)699 |
ChildOf | ![]() | 88 | Argument Injection or Modification | Research Concepts (primary)1000 |
Modifications | ||||
---|---|---|---|---|
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Eric Dalci | Cigital | External | |
updated Time of Introduction | ||||
2008-09-08 | CWE Content Team | MITRE | Internal | |
updated Description, Relationships, Observed Example, Other Notes | ||||
2009-12-28 | CWE Content Team | MITRE | Internal | |
updated Other Notes, Weakness Ordinalities |