mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
21 lines
645 B
Plaintext
21 lines
645 B
Plaintext
import java
|
|
import semmle.code.java.security.OgnlInjectionQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class OgnlInjectionTest extends InlineExpectationsTest {
|
|
OgnlInjectionTest() { this = "HasOgnlInjection" }
|
|
|
|
override string getARelevantTag() { result = "hasOgnlInjection" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasOgnlInjection" and
|
|
exists(DataFlow::Node src, DataFlow::Node sink, OgnlInjectionFlowConfig conf |
|
|
conf.hasFlow(src, sink)
|
|
|
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|