mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
20 lines
566 B
Plaintext
20 lines
566 B
Plaintext
import java
|
|
import semmle.code.java.security.RequestForgeryConfig
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class HasFlowTest extends InlineExpectationsTest {
|
|
HasFlowTest() { this = "HasFlowTest" }
|
|
|
|
override string getARelevantTag() { result = "SSRF" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "SSRF" and
|
|
exists(DataFlow::Node sink |
|
|
RequestForgeryFlow::hasFlowTo(sink) and
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|