mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
21 lines
675 B
Plaintext
21 lines
675 B
Plaintext
import java
|
|
import semmle.code.java.security.InsecureBasicAuthQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class HasInsecureBasicAuthTest extends InlineExpectationsTest {
|
|
HasInsecureBasicAuthTest() { this = "HasInsecureBasicAuthTest" }
|
|
|
|
override string getARelevantTag() { result = "hasInsecureBasicAuth" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasInsecureBasicAuth" and
|
|
exists(DataFlow::Node src, DataFlow::Node sink, BasicAuthFlowConfig conf |
|
|
conf.hasFlow(src, sink)
|
|
|
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|