mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Refactor UnsafeCertTrustQuery
This commit is contained in:
@@ -18,7 +18,5 @@ import semmle.code.java.security.UnsafeCertTrustQuery
|
||||
from Expr unsafeTrust
|
||||
where
|
||||
unsafeTrust instanceof RabbitMQEnableHostnameVerificationNotSet or
|
||||
exists(SslEndpointIdentificationFlowConfig config |
|
||||
config.hasFlowTo(DataFlow::exprNode(unsafeTrust))
|
||||
)
|
||||
SslEndpointIdentificationFlow::flowTo(DataFlow::exprNode(unsafeTrust))
|
||||
select unsafeTrust, "Unsafe configuration of trusted certificates."
|
||||
|
||||
Reference in New Issue
Block a user