Skip to content

Commit c9f60d4

Browse files
committed
JS: add lodash sinks for js/resource-exhaustion
1 parent 96160a6 commit c9f60d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ module ResourceExhaustion {
174174
*/
175175
class TimerDurationSink extends Sink {
176176
TimerDurationSink() {
177-
this = DataFlow::globalVarRef(["setTimeout", "setInterval"]).getACall().getArgument(1)
177+
this = DataFlow::globalVarRef(["setTimeout", "setInterval"]).getACall().getArgument(1) or
178+
this = LodashUnderscore::member(["delay", "throttle", "debounce"]).getACall().getArgument(1)
178179
}
179180

180181
override DataFlow::FlowLabel getAFlowLabel() { any() }

0 commit comments

Comments
 (0)