We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3719875 commit 7d4767aCopy full SHA for 7d4767a
java/ql/src/Security/CWE/CWE-614/InsecureCookie.ql
@@ -20,7 +20,7 @@ where
20
not exists(Variable cookie, MethodAccess m |
21
add.getArgument(0) = cookie.getAnAccess() and
22
m.getMethod().getName() = "setSecure" and
23
- m.getArgument(0).(BooleanLiteral).getBooleanValue() = true and
+ m.getArgument(0).(CompileTimeConstantExpr).getBooleanValue() = true and
24
m.getQualifier() = cookie.getAnAccess()
25
)
26
select add, "Cookie is added to response without the 'secure' flag being set."
0 commit comments