Skip to content

Commit 1ba39e4

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 05ffd67 commit 1ba39e4

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
@@ -146,10 +146,7 @@ module InsecureCookie {
146146

147147
override predicate isInsecure() {
148148
// A cookie is insecure if there are not cookie options with the `secure` flag set to `true`.
149-
not exists(DataFlow::SourceNode cookieOptions |
150-
cookieOptions = this.getCookieOptionsArgument() and
151-
getCookieFlagValue(flag()).mayHaveBooleanValue(true)
152-
)
149+
not getCookieFlagValue(flag()).mayHaveBooleanValue(true)
153150
}
154151
}
155152
}

0 commit comments

Comments
 (0)