Back to the previous page
| Test Case ID | 153281 |
| Bad / Good / Mixed | Bad |
| Author | IARPA STONESOUP Test and Evaluation team |
| Associations | Test suite: 102 Application: 3 |
| Added by | Charles Oliveira |
| Language | C |
| Type of test case | Source Code |
| Input string | |
| Expected Output | |
| Instructions | See src/INSTALL file for instructions on how to install. |
| Submission date | 2015-10-06 |
| 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: FILE_CONTENTS - Data Type: SIMPLE - Data Flow: BASIC - Control Flow: SEQUENCE |
| File(s) |
|
| Flaw |
There are no comments
Have any comments on this test case? Please,
.
- dfa.c
- runFifos.py
- service_mon.sh
- C-C127A-GREP-01-ST02-DT02-DF11-CF20-01.yaml
- C-C127A-GREP-01-ST02-DT02-DF11-CF20-01.xml
File Contains:
CWE-127: Buffer Under-read on line(s): 4094, 4095, 4096, 4097, 4098, 4099, 4100, 4101
CWE-127: Buffer Under-read on line(s): 4094, 4095, 4096, 4097, 4098, 4099, 4100, 4101

