mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05: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
bfef84e1b5
commit
ab20beba56
@@ -115,8 +115,8 @@ module InsecureCookie {
|
||||
result.asExpr() = this.asExpr().(ArrayExpr).getAnElement()
|
||||
}
|
||||
|
||||
// A cookie is insecure if the 'secure' flag is not specified in the cookie definition.
|
||||
override predicate isInsecure() {
|
||||
// A cookie is insecure if the 'secure' flag is not specified in the cookie definition.
|
||||
not exists(string s |
|
||||
getCookieOptionsArgument().mayHaveStringValue(s) and
|
||||
s.matches("%; secure%")
|
||||
|
||||
Reference in New Issue
Block a user