Skip to content

Commit d60d18a

Browse files
edvraaowen-mc
authored andcommitted
Stay on dataflow level
1 parent ed8d025 commit d60d18a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ private predicate isAuthVariable(Expr expr) {
5757
*/
5858
private class SetCookieSink extends DataFlow::Node {
5959
SetCookieSink() {
60-
exists(CallExpr c |
61-
c.getTarget().hasQualifiedName(package("net/http", ""), "SetCookie") and
62-
this.asExpr() = c.getArgument(1)
60+
exists(DataFlow::CallNode cn |
61+
cn.getTarget().hasQualifiedName(package("net/http", ""), "SetCookie") and
62+
this = cn.getArgument(1)
6363
)
6464
}
6565
}

0 commit comments

Comments
 (0)