make ReDoSPruning into a parameterized module

This commit is contained in:
Erik Krogh Kristensen
2022-02-14 13:26:08 +01:00
parent dc06e9df02
commit 3be4a86acd
16 changed files with 296 additions and 328 deletions

View File

@@ -19,7 +19,7 @@ import semmle.javascript.security.performance.ReDoSUtil
import semmle.javascript.security.performance.ExponentialBackTracking
from RegExpTerm t, string pump, State s, string prefixMsg
where ReDoSPruning::hasReDoSResult(t, pump, s, prefixMsg)
where hasReDoSResult(t, pump, s, prefixMsg)
select t,
"This part of the regular expression may cause exponential backtracking on strings " + prefixMsg +
"containing many repetitions of '" + pump + "'."