Refactor UnsafeCertTrustQuery

This commit is contained in:
Ed Minnix
2023-03-20 07:35:20 -04:00
parent a040ff6997
commit ac8dec740a
3 changed files with 22 additions and 14 deletions

View File

@@ -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."