SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security

View/Download Test Cases

Test Suite #63: Java Test Suite for Source Code Analyzer - weakness

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
20842009-08-21JavaSource 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')
Bad test case
20852009-08-21JavaSource CodeAccepted The code, with a scope complexity, tries to execute a system ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Bad test case
20862009-08-21JavaSource CodeAccepted The code, with a local control flow complexity, tries to execute ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Bad test case
20872009-08-21JavaSource CodeAccepted The code, with a loop structure complexity, tries to execute a ...CWE-078: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Bad test case
20882009-08-21JavaSource CodeAccepted The code creates a file from data read, without filtering.CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Bad test case
20892009-08-21JavaSource CodeAccepted The code, with a scope complexity, creates a file from data ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Bad test case
20902009-08-21JavaSource CodeAccepted The code, with a container complexity, creates a file from data ...CWE-099: Improper Control of Resource Identifiers ('Resource Injection')
Bad test case
20912009-08-21JavaSource CodeAccepted Authorization is given by an hard-coded password, which is built ...CWE-259: Use of Hard-coded Password
Bad test case
20922009-08-21JavaSource CodeAccepted Authorization is given by an hard-coded password, which is built ...CWE-259: Use of Hard-coded Password
Bad test case
20932009-08-21JavaSource CodeAccepted Authorization is given by an hard-coded password, which is built ...CWE-259: Use of Hard-coded Password
Bad test case
20942009-08-21JavaSource CodeAccepted Authorization is given by an hard-coded password, which is built ...CWE-259: Use of Hard-coded Password
Bad test case
20952009-08-21JavaSource CodeAccepted Authorization is given by an hard-coded password, which is built ...CWE-259: Use of Hard-coded Password
Bad test case
20962009-08-21JavaSource CodeAccepted The code checks the state of a file to use but its state can ...CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Bad test case
20982009-08-22JavaSource CodeAccepted This test illustrates the potential to create entry points in ...CWE-489: Leftover Debug Code
Bad test case
20992009-08-22JavaSource CodeAccepted This test is an example of a "potential" null pointer ...CWE-476: NULL Pointer Dereference
Bad test case
21032009-08-22JavaSource CodeAccepted This test illustrates an "unchecked error condition" ...CWE-391: Unchecked Error Condition
Bad test case
21042009-08-22JavaSource CodeAccepted This is an example of what could be a critical resource lock ...CWE-412: Unrestricted Externally Accessible Lock
Bad test case
21052009-08-24JavaSource CodeAccepted This test is an example of a "potential" null pointer ...CWE-476: NULL Pointer Dereference
Bad test case
21062009-08-24JavaSource CodeAccepted This test is an example of a "potential" null pointer ...CWE-476: NULL Pointer Dereference
Bad test case
21072009-08-24JavaSource CodeAccepted This test is an example of a "potential" null pointer ...CWE-476: NULL Pointer Dereference
Bad test case
1 2
Total of selected test cases: 27
Total pages: 2