- Visit the AWS website (https://aws.amazon.com) and create a free account
{% embed url="https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-download" %}
aws configureList 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]{% embed url="https://github.com/sa7mon/S3Scanner" %}
- S3 Content Listing
{% embed url="https://hackerone.com/reports/1062803" %}
- User's Can upload any files without limits
{% embed url="https://hackerone.com/reports/764243" %}
- No Authentication on S3 bucket and can be accessed by any user
{% embed url="https://hackerone.com/reports/819278" %}
- S3 bucket misconfig of pre-signed URLs
{% embed url="https://labs.detectify.com/writeups/bypassing-and-exploiting-bucket-upload-policies-and-signed-urls/" %}
https://www.youtube.com/watch?v=MBQJJ3jfJ8k
https://www.youtube.com/watch?v=G7Pre3Y46Fs
{% embed url="https://3bodymo.medium.com/how-i-earned-by-amazon-s3-bucket-misconfigurations-29d51ee510de" %}
{% embed url="https://medium.com/@janijay007/s3-bucket-misconfiguration-from-basics-to-pawn-6893776d1007" %}