CAPEC-92: Forced Integer Overflow
ID
CAPEC-92
Typical Severity
High
Likelihood Of Attack
High
Status
Draft
This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.
Weaknesses
# ID | Name | Type |
---|---|---|
CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | weakness |
CWE-122 | Heap-based Buffer Overflow | weakness |
CWE-128 | Wrap-around Error | weakness |
CWE-190 | Integer Overflow or Wraparound | weakness |
CWE-196 | Unsigned to Signed Conversion Error | weakness |
CWE-680 | Integer Overflow to Buffer Overflow | weakness |
CWE-697 | Incorrect Comparison | weakness |
Taxonomiy Mapping
Type | # ID | Name |
---|---|---|
WASC | 03 | Integer Overflows |