Skip to content

Commit 983e714

Browse files
committed
Data flow: Track store origins
1 parent 5b46f51 commit 983e714

2 files changed

Lines changed: 293 additions & 167 deletions

File tree

javascript/ql/src/Security/CWE-730/RegExpInjection.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import javascript
1717
import semmle.javascript.security.dataflow.RegExpInjectionQuery
1818
import RegExpInjectionFlow::PathGraph
1919

20+
predicate stats = RegExpInjectionFlow::Debug::stageStats/10;
21+
22+
predicate foo = RegExpInjectionFlow::Debug::stageStats4/10;
23+
2024
from RegExpInjectionFlow::PathNode source, RegExpInjectionFlow::PathNode sink
2125
where RegExpInjectionFlow::flowPath(source, sink)
2226
select sink.getNode(), source, sink, "This regular expression is constructed from a $@.",

0 commit comments

Comments
 (0)