mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
19 lines
574 B
Plaintext
19 lines
574 B
Plaintext
import java
|
|
import semmle.code.java.security.InsecureBasicAuthQuery
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module HasInsecureBasicAuthTest implements TestSig {
|
|
string getARelevantTag() { result = "hasInsecureBasicAuth" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasInsecureBasicAuth" and
|
|
exists(DataFlow::Node sink | InsecureBasicAuthFlow::flowTo(sink) |
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<HasInsecureBasicAuthTest>
|