Back to the previous page
Test Case ID | ![]() |
Bad / Good / Mixed | Bad![]() |
Author | IARPA STONESOUP Test and Evaluation team |
Associations | Test suite: 102 Application: 6 |
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 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: Tree - Source Taint: ENVIRONMENT_VARIABLE - Data Type: SIMPLE - Data Flow: BASIC - Control Flow: SEQUENCE |
File(s) |
|
Flaw |
There are no comments
Have any comments on this test case? Please,
.
- color.c
- service_mon.sh
- C-C124A-CTRE-01-ST01-DT02-DF11-CF20-01.xml
- C-C124A-CTRE-01-ST01-DT02-DF11-CF20-01.yaml
- runFifos.py
File Contains:
CWE-124: Buffer Underwrite ('Buffer Underflow') on line(s): 560, 561, 562, 563, 564, 565, 566, 567, 568
CWE-124: Buffer Underwrite ('Buffer Underflow') on line(s): 560, 561, 562, 563, 564, 565, 566, 567, 568