Skip to content

Commit ab20beb

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 bfef84e commit ab20beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ module InsecureCookie {
115115
result.asExpr() = this.asExpr().(ArrayExpr).getAnElement()
116116
}
117117

118-
// A cookie is insecure if the 'secure' flag is not specified in the cookie definition.
119118
override predicate isInsecure() {
119+
// A cookie is insecure if the 'secure' flag is not specified in the cookie definition.
120120
not exists(string s |
121121
getCookieOptionsArgument().mayHaveStringValue(s) and
122122
s.matches("%; secure%")

0 commit comments

Comments
 (0)