Skip to content

Commit 8b4826c

Browse files
Singleton set literal fix
Fixing auto-code scanning recommendation
1 parent 1400b4b commit 8b4826c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/experimental/Security/CWE-327/Azure/UnsafeUsageOfClientSideEncryptionVersion.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ predicate isUnsafeClientSideAzureStorageEncryptionViaAttributes(Call call, AttrN
2525
|
2626
s1 in ["key_encryption_key", "key_resolver_function"] and
2727
s2 in ["ContainerClient", "BlobClient", "BlobServiceClient"] and
28-
s3 in ["upload_blob"] and
28+
s3 = "upload_blob" and
2929
n = API::moduleImport("azure").getMember("storage").getMember("blob").getMember(s2).getAMember() and
3030
startingNode = n.getACall().getReturn().getAValueReachableFromSource().asExpr().getAFlowNode() and
3131
startingNode.strictlyReaches(ctrlFlowNode) and

0 commit comments

Comments
 (0)