mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Rename SSL configuration and fix PathGraph
This commit is contained in:
@@ -54,7 +54,7 @@ module BasicAuthFlowConfiguration = DataFlow::Make<BasicAuthFlowConfig>;
|
||||
/**
|
||||
* A taint-tracking configuration for `ssl` configuration in LDAP authentication.
|
||||
*/
|
||||
private module SslFlowConfig implements DataFlow::ConfigSig {
|
||||
private module RequiresSslConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node src) {
|
||||
exists(MethodAccess ma |
|
||||
isSslEnv(ma) and ma.getQualifier() = src.(PostUpdateNode).getPreUpdateNode().asExpr()
|
||||
@@ -69,4 +69,4 @@ private module SslFlowConfig implements DataFlow::ConfigSig {
|
||||
}
|
||||
}
|
||||
|
||||
module SslFlowConfiguration = DataFlow::Make<SslFlowConfig>;
|
||||
module RequiresSslConfiguration = DataFlow::Make<RequiresSslConfig>;
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
|
||||
import java
|
||||
import semmle.code.java.security.InsecureLdapAuthQuery
|
||||
import InsecureLdapAuthQuery::PathGraph
|
||||
import InsecureUrlFlowConfiguration::PathGraph
|
||||
|
||||
from InsecureUrlFlowConfiguration::PathNode source, InsecureUrlFlowConfiguration::PathNode sink
|
||||
where
|
||||
InsecureUrlFlowConfiguration::hasFlowPath(source, sink) and
|
||||
BasicAuthFlowConfiguration::hasFlowTo(sink.getNode()) and
|
||||
not SslFlowConfiguration::hasFlowTo(sink.getNode())
|
||||
not RequiresSslConfiguration::hasFlowTo(sink.getNode())
|
||||
select sink.getNode(), source, sink, "Insecure LDAP authentication from $@.", source.getNode(),
|
||||
"LDAP connection string"
|
||||
|
||||
Reference in New Issue
Block a user