Skip to content

Commit bfef84e

Browse files
dellaliberaesbena
andauthored
Update javascript/ql/src/experimental/Security/CWE-614/InsecureCookie.qll
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
1 parent a2e9456 commit bfef84e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

javascript/ql/src/experimental/Security/CWE-614/InsecureCookie.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ module InsecureCookie {
9797
override predicate isInsecure() {
9898
// A cookie is insecure if there are not cookie options with the `secure` flag set to `true`.
9999

100-
not exists(DataFlow::SourceNode cookieOptions |
101-
cookieOptions = this.getCookieOptionsArgument() and
102-
getCookieFlagValue(flag()).mayHaveBooleanValue(true)
103-
)
100+
not getCookieFlagValue(flag()).mayHaveBooleanValue(true)
104101
}
105102
}
106103

0 commit comments

Comments
 (0)