Skip to content

Commit f7ab29a

Browse files
author
Esben Sparre Andreasen
committed
JS: support "express-rate-limit" non-constructor calls
1 parent c6cfca3 commit f7ab29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/security/dataflow/MissingRateLimiting.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ abstract class RateLimiter extends Express::RouteHandlerExpr {
131131
*/
132132
class ExpressRateLimit extends RateLimiter {
133133
ExpressRateLimit() {
134-
DataFlow::moduleImport("express-rate-limit").getAnInstantiation().flowsToExpr(this)
134+
DataFlow::moduleImport("express-rate-limit").getAnInvocation().flowsToExpr(this)
135135
}
136136
}
137137

0 commit comments

Comments
 (0)