mirror of
https://github.com/github/codeql.git
synced 2026-02-28 21:03:50 +01:00
19 lines
579 B
Plaintext
19 lines
579 B
Plaintext
import java
|
|
import semmle.code.java.security.ConditionalBypassQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
module ConditionalBypassTest implements TestSig {
|
|
string getARelevantTag() { result = "hasConditionalBypassTest" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasConditionalBypassTest" and
|
|
exists(DataFlow::Node sink | ConditionalBypassFlow::flowTo(sink) |
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<ConditionalBypassTest>
|