Skip to content

Commit 3ac1b4b

Browse files
edvraaowen-mc
authored andcommitted
Use CallNode
1 parent d06f4ca commit 3ac1b4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ql/src/experimental/CWE-1004/AuthCookie.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ class GorillaCookieStoreSaveTrackingConfiguration extends DataFlow::Configuratio
165165
}
166166

167167
override predicate isSource(DataFlow::Node source) {
168-
exists(CallExpr c |
169-
source.asExpr() = c and
170-
c.getTarget().hasQualifiedName("github.com/gorilla/sessions", "NewCookieStore")
171-
)
168+
source
169+
.(DataFlow::CallNode)
170+
.getTarget()
171+
.hasQualifiedName("github.com/gorilla/sessions", "NewCookieStore")
172172
}
173173

174174
override predicate isSink(DataFlow::Node sink) { sink instanceof GorillaSessionSaveSink }

0 commit comments

Comments
 (0)