mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
23 lines
757 B
Plaintext
23 lines
757 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.TaintTracking
|
|
import semmle.code.java.dataflow.FlowSources
|
|
import semmle.code.java.security.GroovyInjectionQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class HasGroovyInjectionTest extends InlineExpectationsTest {
|
|
HasGroovyInjectionTest() { this = "HasGroovyInjectionTest" }
|
|
|
|
override string getARelevantTag() { result = "hasGroovyInjection" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasGroovyInjection" and
|
|
exists(DataFlow::Node src, DataFlow::Node sink, GroovyInjectionConfig conf |
|
|
conf.hasFlow(src, sink)
|
|
|
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|