Refactor RegexInjectionQuery

This commit is contained in:
Ed Minnix
2023-03-20 17:21:38 -04:00
parent c44254e2e0
commit 7ee6c06f7f
3 changed files with 23 additions and 6 deletions

View File

@@ -15,9 +15,9 @@
import java
import semmle.code.java.security.regexp.RegexInjectionQuery
import DataFlow::PathGraph
import RegexInjectionFlow::PathGraph
from DataFlow::PathNode source, DataFlow::PathNode sink, RegexInjectionConfiguration c
where c.hasFlowPath(source, sink)
from RegexInjectionFlow::PathNode source, RegexInjectionFlow::PathNode sink
where RegexInjectionFlow::hasFlowPath(source, sink)
select sink.getNode(), source, sink, "This regular expression is constructed from a $@.",
source.getNode(), "user-provided value"