mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update javascript/ql/src/experimental/Security/CWE-614/InsecureCookie.qll
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
committed by
GitHub
parent
40e101de5a
commit
ab128f7172
@@ -69,8 +69,8 @@ module InsecureCookie {
|
||||
result = this.getCookieOptionsArgument().getAPropertyWrite(flag).getRhs()
|
||||
}
|
||||
|
||||
// A cookie is insecure if there are not cookie options with the `secure` flag set to `true`.
|
||||
override predicate isInsecure() {
|
||||
// A cookie is insecure if there are not cookie options with the `secure` flag set to `true`.
|
||||
not exists(DataFlow::SourceNode cookieOptions |
|
||||
cookieOptions = this.getCookieOptionsArgument() and
|
||||
getCookieFlagValue(flag()).mayHaveBooleanValue(true)
|
||||
|
||||
Reference in New Issue
Block a user