We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4fbe2 commit 4c9f406Copy full SHA for 4c9f406
javascript/ql/lib/semmle/javascript/security/dataflow/UnvalidatedDynamicMethodCallCustomizations.qll
@@ -182,7 +182,11 @@ module UnvalidatedDynamicMethodCall {
182
exists(InvokeExpr invk |
183
this = invk.getCallee().flow() and
184
// don't flag invocations inside a try-catch
185
- not invk.getASuccessor() instanceof CatchClause
+ not invk.getASuccessor() instanceof CatchClause and
186
+ // Filter out `foo.bar()` calls as they usually aren't interesting.
187
+ // Technically this could be reachable if preceded by `foo.bar = obj[taint]`
188
+ // but such sinks are more likely to be FPs and also slow down the query.
189
+ not invk.getCallee() instanceof DotExpr
190
)
191
}
192
0 commit comments