Account Disclosure by resource policy
SNS publish policy
Use the assign policy command to enumerate existing accounts. Create an SNS topic and an access policy where we specify the Account ID we want to test. If we don't receive an error then we have confirmed the existence of the account
Create SNS topic
Create the following file locally and save it as a JSON file
Assign the policy to the bucket
Bucket policies
By trying to assign a role to a bucket we own it is possible to check if a specific user exists. Since the role is owned by a user we input the user account id we want to test (12 ciphers without hyphen) and an arbitrary role name. If the operation succeeds we have confirmed that the account exists
Create the following file locally and save it as a JSON file
Assign the policy to the bucket
Last updated