Skip to content

Commit 05ffd67

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 ab20beb commit 05ffd67

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
@@ -144,8 +144,8 @@ module InsecureCookie {
144144
result = this.getCookieOptionsArgument().getAPropertyWrite(flag).getRhs()
145145
}
146146

147-
// A cookie is insecure if there are not cookie options with the `secure` flag set to `true`.
148147
override predicate isInsecure() {
148+
// A cookie is insecure if there are not cookie options with the `secure` flag set to `true`.
149149
not exists(DataFlow::SourceNode cookieOptions |
150150
cookieOptions = this.getCookieOptionsArgument() and
151151
getCookieFlagValue(flag()).mayHaveBooleanValue(true)

0 commit comments

Comments
 (0)