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.
21 lines
739 B
Plaintext
21 lines
739 B
Plaintext
import java
|
|
import semmle.code.java.security.HardcodedCredentialsSourceCallQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class HardcodedCredentialsSourceCallTest extends InlineExpectationsTest {
|
|
HardcodedCredentialsSourceCallTest() { this = "HardcodedCredentialsSourceCallTest" }
|
|
|
|
override string getARelevantTag() { result = "HardcodedCredentialsSourceCall" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "HardcodedCredentialsSourceCall" and
|
|
exists(DataFlow::Node sink, HardcodedCredentialSourceCallConfiguration conf |
|
|
conf.hasFlow(_, sink)
|
|
|
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|