AWS - Cognito Enum

जानें AWS हैकिंग को शून्य से हीरो तक htARTE (HackTricks AWS Red Team Expert)!

HackTricks का समर्थन करने के अन्य तरीके:

Cognito

Amazon Cognito का उपयोग वेब और मोबाइल एप्लिकेशन में प्रमाणीकरण, अधिकारीकरण, और उपयोगकर्ता प्रबंधन के लिए किया जाता है। यह उपयोगकर्ताओं को सीधे उपयोगकर्ता नाम और पासवर्ड का उपयोग करके या तीसरे पक्ष के माध्यम से, जैसे Facebook, Amazon, Google, या Apple के माध्यम से साइन इन करने की लाता है।

Amazon Cognito के मुख्य घटक हैं:

  1. उपयोगकर्ता पूल: ये आपके एप्लिकेशन उपयोगकर्ताओं के लिए निर्देशित निर्देशिकाएं हैं, साइन-अप और साइन-इन कार्यों की पेशकश करते हैं।

  2. पहचान पूल: ये पूल उपयोगकर्ताओं को विभिन्न AWS सेवाओं तक पहुंचने की अधिकारीकरण में महत्वपूर्ण भूमिका निभाते हैं। ये साइन-इन या साइन-अप प्रक्रिया में सीधे शामिल नहीं हैं, लेकिन प्रमाणीकरण के बाद संसाधन उपयोग के लिए महत्वपूर्ण हैं।

उपयोगकर्ता पूल

Cognito User Pool क्या है जानने के लिए देखें:

pageCognito User Pools

पहचान पूल

Cognito Identity Pool क्या है जानने के लिए देखें:

pageCognito Identity Pools

Enumeration

```bash # List Identity Pools aws cognito-identity list-identity-pools --max-results 60 aws cognito-identity describe-identity-pool --identity-pool-id "eu-west-2:38b294756-2578-8246-9074-5367fc9f5367" aws cognito-identity list-identities --identity-pool-id --max-results 60 aws cognito-identity get-identity-pool-roles --identity-pool-id

Identities Datasets

Get dataset of identity id (inside identity pool)

aws cognito-sync list-datasets --identity-pool-id --identity-id

Get info of the dataset

aws cognito-sync describe-dataset --identity-pool-id --identity-id --dataset-name

Get dataset records

aws cognito-sync list-records --identity-pool-id --identity-id --dataset-name

User Pools

Get pools

aws cognito-idp list-user-pools --max-results 60

Get users

aws cognito-idp list-users --user-pool-id

Get groups

aws cognito-idp list-groups --user-pool-id

Get users in a group

aws cognito-idp list-users-in-group --user-pool-id --group-name

List App IDs of a user pool

aws cognito-idp list-user-pool-clients --user-pool-id

List configured identity providers for a user pool

aws cognito-idp list-identity-providers --user-pool-id <user-poo

List user import jobs

aws cognito-idp list-user-import-jobs --user-pool-id --max-results 60

Get MFA config of a user pool

aws cognito-idp get-user-pool-mfa-config --user-pool-id

Get risk configuration

aws cognito-idp describe-risk-configuration --user-pool-id

### पहचान पूल - अनधिकृत गणना

बस **पहचान पूल आईडी पता होने** पर आप **अनधिकृत** उपयोगकर्ताओं से संबंधित भूमिका के **प्रमाण प्राप्त** कर सकते हैं (यदि कोई हो). [**यहां जांचें**](cognito-identity-pools.md#accessing-iam-roles).

### उपयोगकर्ता पूल - अनधिकृत गणना

यदि आपको Cognito में **एक मान्य उपयोगकर्ता नाम पता नहीं** है, तो आपको **मान्य उपयोगकर्ता नामों** की **गणना** कर सकते हैं, **BF** कर सकते हैं, या नए उपयोगकर्ता को **पंजीकृत** कर सकते हैं बस **ऐप क्लाइंट आईडी पता होने** पर (जो सामान्यत: स्रोत कोड में पाया जाता है). [**यहां जांचें**](cognito-user-pools.md#registration)**.**

Last updated