mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
19 lines
589 B
Plaintext
19 lines
589 B
Plaintext
import java
|
|
import semmle.code.java.security.SpringCsrfProtection
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module SpringCsrfProtectionTest implements TestSig {
|
|
string getARelevantTag() { result = "hasSpringCsrfProtectionDisabled" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasSpringCsrfProtectionDisabled" and
|
|
exists(MethodCall call | disablesSpringCsrfProtection(call) |
|
|
call.getLocation() = location and
|
|
element = call.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<SpringCsrfProtectionTest>
|