Skip to content

Commit 57cf447

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 22f5ae4 commit 57cf447

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
@@ -77,7 +77,7 @@ module Cookie {
7777
*/
7878
class InsecureExpressCookieResponse extends Cookie {
7979
InsecureExpressCookieResponse() {
80-
this = any(Express::ResponseExpr response).flow().getALocalSource().getAMethodCall("cookie")
80+
this.calls(any(Express::ResponseExpr r).flow(), "cookie")
8181
}
8282

8383
override string getKind() { result = "response.cookie" }

0 commit comments

Comments
 (0)