Skip to content

Commit 701d998

Browse files
asgerferik-krogh
andauthored
Apply suggestions from code review
Co-Authored-By: Erik Krogh Kristensen <erik-krogh@github.com>
1 parent 310dd05 commit 701d998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Security/CWE-352/MissingCsrfMiddleware.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private DataFlow::SourceNode nodeLeadingToCookieAccess(DataFlow::TypeBackTracker
3535
)
3636
}
3737

38-
/** Gets a data flow node that flows to the base of an access to `cookies` or `session`. */
38+
/** Gets a data flow node that flows to the base of an access to `cookies`, `session`, or `user`. */
3939
DataFlow::SourceNode nodeLeadingToCookieAccess() {
4040
result = nodeLeadingToCookieAccess(DataFlow::TypeBackTracker::end())
4141
}
@@ -123,7 +123,7 @@ where
123123
getARouteUsingCookies().flowsToExpr(handler) and
124124
hasCookieMiddleware(handler, cookie) and
125125

126-
// Only flag the first cookie parser registered first.
126+
// Only flag the cookie parser registered first.
127127
not hasCookieMiddleware(cookie, _) and
128128

129129
not hasCsrfMiddleware(handler) and

0 commit comments

Comments
 (0)