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

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

Test Case IDCandidate156899
Bad / Good / MixedBadBad test case
AuthorIARPA STONESOUP Test and Evaluation team
Associations
Test suite: 102  
Application: 10  
Added byCharles Oliveira
LanguageJava
Type of test caseSource Code
Input string
Expected Output
Instructions
See src/build.xml and src/maven-build.xml.
Submission date2015-10-06
DescriptionThe software uses external input to construct a pathname that should be within a restricted directory, but it does not neutralize absolute path sequences such as '/abs/path' that can resolve to a location that is outside of that directory. This test takes in a filename to read. Since the provided filename isn't checked to ensure it doesn't contain an absolute path, it allows reading of any file on the system.
Metadata
- Base program: Elastic Search
- Source Taint: SOCKET
- Data Type: VOID_POINTER
- Data Flow: BASIC
- Control Flow: INFINITE_LOOP
File(s)
Flaw

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

File Contains:
CWE-036: Absolute Path Traversal on line(s): 258, 259, 260, 261, 262