ognito User Pool and Identity Pool Enumeration
Cognito manages user authentication (user pools) and AWS credential federation (identity pools). Misconfigurations in identity pools grant temporary AWS credentials — sometimes without any authentication at all.
User Pools
List all user pools:
Key fields:
MfaConfiguration—OFF,OPTIONAL, orONPolicies.PasswordPolicy— minimum length and complexity requirementsUsernameAttributes— whether users log in with email or phone numberAliasAttributes— what aliases are allowed
App Clients
App clients define how applications authenticate users. Client secrets are optional:
A client with ALLOW_USER_PASSWORD_AUTH enabled accepts direct username/password authentication — a spray target. App client secrets are returned in plaintext if you have cognito-idp:DescribeUserPoolClient.
List Users
With admin access, enumerate all registered users:
Identity Pools (Federated Identities)
Identity pools issue temporary AWS credentials. Unauthenticated access grants credentials with no login required:
Key field: AllowUnauthenticatedIdentities. If true, anyone can get AWS credentials:
The returned credentials are scoped to the unauthenticated IAM role. Enumerate what that role can do — it is often overpermissioned.
Roles for Identity Pool
Returns both authenticated and unauthenticated role ARNs. Enumerate both roles' policies via IAM Authenticated Enumeration.
Was this helpful?
Your feedback helps improve this page.