mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
JS: recognize tiny-csrf
This commit is contained in:
@@ -57,7 +57,7 @@ predicate hasCookieMiddleware(Routing::Node route, Http::CookieMiddlewareInstanc
|
||||
*/
|
||||
DataFlow::SourceNode csrfMiddlewareCreation() {
|
||||
exists(DataFlow::SourceNode callee | result = callee.getACall() |
|
||||
callee = DataFlow::moduleImport("csurf")
|
||||
callee = DataFlow::moduleImport(["csurf", "tiny-csrf"])
|
||||
or
|
||||
callee = DataFlow::moduleImport("lusca") and
|
||||
exists(result.(DataFlow::CallNode).getOptionArgument(0, "csrf"))
|
||||
|
||||
Reference in New Issue
Block a user