mirror of
https://github.com/github/codeql.git
synced 2026-02-23 02:13:41 +01:00
21 lines
709 B
Plaintext
21 lines
709 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 sink | GroovyInjectionFlow::flowTo(sink) |
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|