mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Apply suggestions from code review
Co-Authored-By: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -35,7 +35,7 @@ private DataFlow::SourceNode nodeLeadingToCookieAccess(DataFlow::TypeBackTracker
|
||||
)
|
||||
}
|
||||
|
||||
/** Gets a data flow node that flows to the base of an access to `cookies` or `session`. */
|
||||
/** Gets a data flow node that flows to the base of an access to `cookies`, `session`, or `user`. */
|
||||
DataFlow::SourceNode nodeLeadingToCookieAccess() {
|
||||
result = nodeLeadingToCookieAccess(DataFlow::TypeBackTracker::end())
|
||||
}
|
||||
@@ -123,7 +123,7 @@ where
|
||||
getARouteUsingCookies().flowsToExpr(handler) and
|
||||
hasCookieMiddleware(handler, cookie) and
|
||||
|
||||
// Only flag the first cookie parser registered first.
|
||||
// Only flag the cookie parser registered first.
|
||||
not hasCookieMiddleware(cookie, _) and
|
||||
|
||||
not hasCsrfMiddleware(handler) and
|
||||
|
||||
Reference in New Issue
Block a user