Skip to content

Commit b63c658

Browse files
committed
JS: recognize tiny-csrf
1 parent 1624191 commit b63c658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ predicate hasCookieMiddleware(Routing::Node route, Http::CookieMiddlewareInstanc
5757
*/
5858
DataFlow::SourceNode csrfMiddlewareCreation() {
5959
exists(DataFlow::SourceNode callee | result = callee.getACall() |
60-
callee = DataFlow::moduleImport("csurf")
60+
callee = DataFlow::moduleImport(["csurf", "tiny-csrf"])
6161
or
6262
callee = DataFlow::moduleImport("lusca") and
6363
exists(result.(DataFlow::CallNode).getOptionArgument(0, "csrf"))

0 commit comments

Comments
 (0)