mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
20 lines
519 B
Plaintext
20 lines
519 B
Plaintext
import java
|
|
import semmle.code.java.security.RequestForgeryConfig
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module HasFlowTest implements TestSig {
|
|
string getARelevantTag() { result = "SSRF" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "SSRF" and
|
|
exists(DataFlow::Node sink |
|
|
RequestForgeryFlow::flowTo(sink) and
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<HasFlowTest>
|