mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +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
5cae3005f3
commit
e463014759
@@ -48,8 +48,10 @@ module InsecureCookie {
|
||||
result = this.getCookieOptionsArgument().getAPropertyWrite(flag).getRhs()
|
||||
}
|
||||
|
||||
// A cookie is insecure if the `secure` flag is explicitly set to `false`.
|
||||
override predicate isInsecure() { getCookieFlagValue(flag()).mayHaveBooleanValue(false) }
|
||||
override predicate isInsecure() {
|
||||
// A cookie is insecure if the `secure` flag is explicitly set to `false`.
|
||||
getCookieFlagValue(flag()).mayHaveBooleanValue(false)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user