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

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

Test Case IDCandidate156982
Bad / Good / MixedBadBad test case
AuthorIARPA STONESOUP Test and Evaluation team
Associations
Test suite: 102  
Application: 15  
Added byCharles Oliveira
LanguageJava
Type of test caseSource Code
Input string
Expected Output
Instructions
See src/docs/howtobuild.html file for instructions on how to install.
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: Apache POI
- Source Taint: SOCKET
- Data Type: SIMPLE
- Data Flow: VAR_ARG_LIST
- Control Flow: BREAK_WITH_LABEL
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): 552, 553, 554, 555