mirror of
https://github.com/github/codeql.git
synced 2026-06-29 16:47:09 +02:00
Specifically Apache sshd defines its sensitive api calls on an inherited interface, and they need to be described that way for us to pick them up.
19 lines
688 B
Plaintext
19 lines
688 B
Plaintext
import java
|
|
import semmle.code.java.security.HardcodedCredentialsComparison
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class HardcodedCredentialsComparisonTest extends InlineExpectationsTest {
|
|
HardcodedCredentialsComparisonTest() { this = "HardcodedCredentialsComparisonTest" }
|
|
|
|
override string getARelevantTag() { result = "HardcodedCredentialsComparison" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "HardcodedCredentialsComparison" and
|
|
exists(Expr sink | isHardcodedCredentialsComparison(sink, _, _) |
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|