Juliet Java 1.0 Test suite #24
DownloadDescription
A collection of test cases in the Java language. It contains examples for 106 different CWEs. This software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guaranties, expressed or implied, about its quality, reliability, or any other characteristic. All documents related to the Juliet Test Suite can be found at the documents page.
Documentation
Displaying test cases 8276 - 8300 of 14184 in total
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 13 Control flow: if(IO.static_final_five==5) and if(IO.static_final_fi...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 14 Control flow: if(IO.static_five==5) and if(IO.static_five!=5)
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 15 Control flow: switch(6) and switch(7)
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 16 Control flow: while(true) and while(local_f)
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 17 Control flow: for loops
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 19 Control flow: Dead code after an if(true) return
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 31 Data flow: make a copy of data within the same method
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 41 Data flow: data passed as an argument from one method to another in...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 42 Data flow: data returned from one method to another in the same class
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 45 Data flow: data passed as a private class member variable from one ...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 51 Data flow: data passed as an argument from one function to another ...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 52 Data flow: data passed as an argument from one method to another to...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 53 Data flow: data passed as an argument from one method to another to...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 53 Data flow: data passed as an argument from one method through two o...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 54 Data flow: data passed as an argument from one method through three...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 61 Data flow: data returned from one method to another in different cl...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 66 Data flow: data passed in an array from one method to another in di...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 67 Data flow: data passed in a class from one method to another in dif...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 68 Data flow: data passed as a member variable in the "a" class, which...
-
CWE: 566 Access through SQL primary BadSource: user id taken from url parameter GoodSource: hardcoded user id Sinks: writeConsole GoodSink: user permissions checked BadSink : user authorization not checked Flow Variant: 71 Data flow: data passed as an Object reference argument from one met...
-
To test interactively you need to test EITHER the bad or good methods by commenting one or the other out.
-
protected finalize method does not call super.finalize()
-
protected finalize method calls super.finalize()
-
statement always evaluates to false
-
statement always evaluates to false