SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security

View/Download Test Cases

Test Suite #64: Java Test Suite for Source Code Analyzer - false positive

Results: 27 test cases in 2 pages. Pages: 1 2
Go to page:

Select Test Case ID(down) Submission Date Language Type of Artifact Status Description Weakness Bad
Good
Mixed
21102009-10-15JavaSource CodeAccepted The code tries to execute a system command, read from the input ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
21112009-10-15JavaSource CodeAccepted The code, with a inter procedural scope complexity, tries to executeaCWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
21122009-10-15JavaSource CodeAccepted The code, with a local control flow complexity (switch), tries ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
21132009-10-15JavaSource CodeAccepted The code, with a loop structure complexity (for), tries to execute asCWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Good test case
21142009-10-15JavaSource CodeAccepted The code creates a FileOutputStream from a file which is allowed ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Good test case
21152009-10-15JavaSource CodeAccepted The code, with an inter procedural scope complexity, creates a ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Good test case
21162009-10-15JavaSource CodeAccepted The code, with a container complexity, creates a ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Good test case
21172009-10-15JavaSource CodeAccepted The password to know if the user is authorized to do high-level workiCWE-259: Use of Hard-coded Password
Good test case
21182009-10-15JavaSource CodeAccepted The password to know if the user is authorized to do high-level workiCWE-259: Use of Hard-coded Password
Good test case
21192009-10-15JavaSource CodeAccepted The password to know if the user is authorized to do high-level workiCWE-259: Use of Hard-coded Password
Good test case
21202009-10-15JavaSource CodeAccepted The password to know if the user is authorized to do high-level workiCWE-259: Use of Hard-coded Password
Good test case
21212009-10-15JavaSource CodeAccepted The password to know if the user is authorized to do high-level workiCWE-259: Use of Hard-coded Password
Good test case
21222009-10-15JavaSource CodeAccepted It checks the state of the file myfile.txt. Its state can change ...CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Good test case
21232009-10-15JavaSource CodeAccepted A FileInputStream such as image data is tried to be created. ...CWE-391: Unchecked Error Condition
Good test case
21242009-10-15JavaSource CodeAccepted Suppose the file /tmp/resourceLock is used as a resource lock. ...CWE-412: Unrestricted Externally Accessible Lock
Good test case
21252009-10-15JavaSource CodeAccepted Here we try to get the system property from a specified key and thenrCWE-476: NULL Pointer Dereference
Good test case
21262009-10-15JavaSource CodeAccepted Here we try to get the system property from a specified key and thenrCWE-476: NULL Pointer Dereference
Good test case
21272009-10-15JavaSource CodeAccepted Here we try to get the system property from a specified key and thenrCWE-476: NULL Pointer Dereference
Good test case
21282009-10-15JavaSource CodeAccepted Here we try to get the system property from a specified key and thenrCWE-476: NULL Pointer Dereference
Good test case
21292009-10-15JavaSource CodeAccepted Basically developer can debug his code by typing ...CWE-489: Leftover Debug Code
Good test case
1 2
Total of selected test cases: 27
Total pages: 2