S3 Buckets Misconfigurations

Step 1: Create an AWS Account

Step 2: Download and Install AWS CLI

Step 3: Configure AWS CLI

aws configure

Step 4: Interacting with S3 Buckets

List bucket contents: 
aws s3 ls s3://bucket-name

Download a file: 
aws s3 cp s3://bucket-name/file.png ./

Upload a file: 
aws s3 cp ./localfile.txt s3://bucket-name/poc.txt

Copy a File:
aws s3 cp test.txt s3://bucket_name

To move a file to a bucket:
aws s3 mv test.txt s3://bucket_name

Delete command:
aws s3 rm s3://qa-media.company/fileName.txt

To Dump Data:
aws s3 sync . s3://[bucketname]

Tools

Lazy S3

bucket_finder

AWS Cred Scanner

sandcastle

Mass3

Dumpster Diver

S3 Bucket Finder

Checklist

https://www.youtube.com/watch?v=MBQJJ3jfJ8k

https://www.youtube.com/watch?v=G7Pre3Y46Fs

Another Resources

Last updated

Was this helpful?