SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security
Downloads:  Download this Test Case #153810

Back to the previous page... Back to the previous page

Test Case IDCandidate153810
Bad / Good / MixedBadBad test case
AuthorIARPA STONESOUP Test and Evaluation team
Associations
Test suite: 102  
Application: 5  
Added byCharles Oliveira
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructions
See src/INSTALL file for instructions on how to install.
Submission date2015-10-06
DescriptionThis test case implements an incorrectly checked write into a buffer that is contained within a heap allocated struct. The buffer is declared as a struct member with a fixed size. 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 the function pointer declared before the buffer in the struct.
Metadata
- Base program: PostgreSQL
- Source Taint: SOCKET
- Data Type: VOID_POINTER
- Data Flow: ADDRESS_AS_NONLINEAR_EXPRESSION
- Control Flow: UNCONDITIONAL_JUMP
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-124: Buffer Underwrite ('Buffer Underflow') on line(s): 4093, 4094, 4095, 4096, 4097, 4098, 4099, 4100, 4101, 4102, 4103