JS: Fix issue for .apply() calls

This commit is contained in:
Asger F
2024-08-14 14:51:22 +02:00
parent 34e6864fa3
commit 4389b5c999
5 changed files with 41 additions and 5 deletions

View File

@@ -55,6 +55,9 @@ private module Cached {
invoke.isSpreadArgument(_) and
storeContent = dynamicArgumentsContent()
} or
TApplyCallTaintNode(MethodCallExpr node) {
node.getMethodName() = "apply" and exists(node.getArgument(1))
} or
TDestructuredModuleImportNode(ImportDeclaration decl) {
exists(decl.getASpecifier().getImportedName())
} or