mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Fix getHost() (ldap.host = ip is not covered)
This commit is contained in:
@@ -64,12 +64,11 @@ module NetLdap {
|
|||||||
NetLdapBind() { this = l.getAMethodCall("bind") }
|
NetLdapBind() { this = l.getAMethodCall("bind") }
|
||||||
|
|
||||||
override DataFlow::Node getHost() {
|
override DataFlow::Node getHost() {
|
||||||
(
|
result =
|
||||||
result = l.getKeywordArgument("encryption")
|
[
|
||||||
or
|
l.getKeywordArgument("host"), l.getAMethodCall("host").getArgument(0),
|
||||||
result = l.getAMethodCall("encryption").getArgument(0)
|
l.getAMethodCall("host").getKeywordArgument("method")
|
||||||
) and
|
]
|
||||||
result.getConstantValue().isStringlikeValue(":simple_tls")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override DataFlow::Node getPassword() {
|
override DataFlow::Node getPassword() {
|
||||||
|
|||||||
Reference in New Issue
Block a user