CWE
Home > CWE List > CWE- Individual Dictionary Definition (1.1)  
Search by ID:

CWE-622: Unvalidated Function Hook Arguments

Individual Definition in a New Window
Unvalidated Function Hook Arguments
Status: Draft
Weakness ID: 622 (Weakness Variant)
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.

Potential Mitigations

Ensure that all arguments are verified, as defined by the API you are protecting.

Drop privileges before invoking such functions, if possible.

Observed Examples
ReferenceDescription
DoS in IDS via NULL argument
DoS in firewall using standard Microsoft functions
DoS in firewall using standard Microsoft functions
invalid syscall arguments bypass code execution limits
function does not verify that its argument is the proper type, leading to arbitrary memory write
Other Notes

This weakness is usually primary.

Relationships
NatureTypeIDNameView(s) this relationship pertains toView(s)
ChildOfWeakness BaseWeakness BaseWeakness Base88Argument Injection or Modification
Research Concepts (primary)1000
ChildOfWeakness ClassWeakness ClassWeakness Class20Insufficient Input Validation
Development Concepts (primary)699
Applicable Platforms
Languages
All
Time of Introduction
* Implementation
Content History
Modifications
Eric Dalci. Cigital. 2008-07-01. (External)
updated Time_of_Introduction
CWE Content Team. MITRE. 2008-09-08. (Internal)
updated Description, Relationships, Observed_Example, Other_Notes
Page Last Updated: November 24, 2008