Update java/ql/src/experimental/Security/CWE/CWE-327/Azure/UnsafeUsageOfClientSideEncryptionVersion.ql

Co-authored-by: yo-h <55373593+yo-h@users.noreply.github.com>
This commit is contained in:
Raul Garcia
2022-07-16 08:23:59 -07:00
committed by GitHub
parent fe789c8aa9
commit eefa659503

View File

@@ -74,7 +74,7 @@ private class EncryptedBlobClientBuilderSafeEncryptionVersionConfig extends Data
*/
predicate isCreatingSafeAzureClientSideEncryptionObject(Call call, Class c, Expr versionArg) {
isCreatingAzureClientSideEncryptionObjectNewVersion(call, c, versionArg) and
exists(EncryptedBlobClientBuilderEncryptionVersionConfig config, DataFlow::Node sink |
exists(EncryptedBlobClientBuilderSafeEncryptionVersionConfig config, DataFlow::Node sink |
sink.asExpr() = versionArg
|
config.hasFlow(_, sink)