National Institute of Standards and Technology
Package illustrating a test case

Test case 153415

Description

This test case implements an unchecked read from a buffer. The buffer is declared as a fixed size buffer on the stack. Untrusted input is not properly sanitized or restricted before being used as an index of the buffer to read. This allows inputs containing non-ascii characters to wrap around to negative indexes and under read the buffer, printing the contents of the memory located before the buffer on the stack to the output stream.
Metadata
- Base program: GNU Grep
- Source Taint: SHARED_MEMORY
- Data Type: SIMPLE
- Data Flow: BASIC
- Control Flow: SEQUENCE

Flaws

Test Suites

Documentation

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