From 1d6816a79ea396e170d45b520ddd4f0a7bc08257 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Jul 2023 16:04:43 -0400 Subject: [PATCH] Beta release coinciding with blog post QA --- pacu/modules/cognito__enum/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pacu/modules/cognito__enum/main.py b/pacu/modules/cognito__enum/main.py index 350ee964..b668f442 100644 --- a/pacu/modules/cognito__enum/main.py +++ b/pacu/modules/cognito__enum/main.py @@ -173,12 +173,14 @@ def main(args, pacu_main): next_token = response['NextToken'] for identity_pool in response['IdentityPools']: identity_pool['Region'] = region + print("Scanning identity pool " + identity_pool['IdentityPoolId'] + " for vulnerabilities.") print("Attempting unauthenticated retrieval of identity Id") try: identity_id = client.get_id( IdentityPoolId=identity_pool["IdentityPoolId"] ) - print(f"Identity ID: {identity_id}") + if identity_id is not None: + print("Identity id successfully retrieved: " + identity_id["IdentityId"]) print( "Attempting unauthenticated retrieval of identity Id credentials" )