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

Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
Alessio Della Libera
2020-08-26 01:47:52 +02:00
committed by GitHub
parent 3bd7615a75
commit a1f64e26cf

View File

@@ -83,7 +83,7 @@ module Cookie {
override string getKind() { result = "response.cookie" }
override DataFlow::SourceNode getCookieOptionsArgument() {
result = this.(DataFlow::InvokeNode).getLastArgument().getALocalSource()
result = this.getLastArgument().getALocalSource()
}
private DataFlow::Node getCookieFlagValue(string flag) {