File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
java/ql/src/experimental/Security/CWE/CWE-1004 Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ class CookieResponseSink extends DataFlow::ExprNode {
7979 }
8080}
8181
82- /** Holds if `cie` is an invocation of a JAX-RS `NewCookie` constructor that sets `HttpOnly` to true. */
82+ /**
83+ * Holds if `ClassInstanceExpr` cie is an invocation of a JAX-RS `NewCookie` constructor
84+ * that sets `HttpOnly` to true.
85+ */
8386predicate setHttpOnlyInNewCookie ( ClassInstanceExpr cie ) {
8487 cie .getConstructedType ( ) .hasQualifiedName ( [ "javax.ws.rs.core" , "jakarta.ws.rs.core" ] , "NewCookie" ) and
8588 (
@@ -111,7 +114,7 @@ class CookieInstanceExpr extends TaintPreservingCallable {
111114}
112115
113116/**
114- * Holds if the node is a test method indicated by:
117+ * Holds if the MethodAccess `ma` is a test method call indicated by:
115118 * a) in a test directory such as `src/test/java`
116119 * b) in a test package whose name has the word `test`
117120 * c) in a test class whose name has the word `test`
You can’t perform that action at this time.
0 commit comments