National Institute of Standards and Technology
Package illustrating a test case

Test case 153123

Description

This test case implements an incorrectly checked write into a stack allocated buffer. The buffer is declared as a fixed size local variable within a function. Untrusted input is not properly sanitized or restricted before being copied into the buffer, from the last character to the first. This allows input greater than 63 characters in length to underflow the buffer, overwriting arbitrary memory, and potentially modifying other local variables depending on the layout of the stack.
Metadata
- Base program: Gimp
- Source Taint: ENVIRONMENT_VARIABLE
- Data Type: STRUCT
- Data Flow: BASIC
- Control Flow: CALLBACK

Flaws

Test Suites

Documentation

Have any comments on this test case? Please, send us an email.