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

@@ -12,9 +12,7 @@ class UnsafeCertTrustTest extends InlineExpectationsTest {
exists(Expr unsafeTrust |
unsafeTrust instanceof RabbitMQEnableHostnameVerificationNotSet
or
exists(SslEndpointIdentificationFlowConfig config |
config.hasFlowTo(DataFlow::exprNode(unsafeTrust))
)
SslEndpointIdentificationFlow::flowTo(DataFlow::exprNode(unsafeTrust))
|
unsafeTrust.getLocation() = location and
element = unsafeTrust.toString() and