S3 - Simple Storage Service

S3 misconfigurations

ko-fi

Amazon Simple Storage Service (S3) is the AWS service offering object-level storage for users and organizations.

Extension

S3BuckketList

Recon Tools

One-Liner

Then check for public S3 buckets:

S3 Recon

s3enum

lazys3

BucketLoot

Bucket inspector that can help users extract assets, flag secret exposures and even search for custom keywords as well as Regular Expressions from publicly-exposed storage buckets by scanning files that store data in plain-text.

Bruteforce S3 buckets

regions.txt

AWSBucketDump

S3 Enumeration Basics

Check website source code - search for s3 url

By default, the AWS CLI includes prefix= (an empty prefix) and delimiter=/ in requests

Check for https://target.com.s3.amazonaws.com/?prefix=&delimiter=/

List bucket content - Anon

If you found an URL like http://target.s3.eu-west-2.amazonaws.com remove the s3.region.amazonaws.com part

By default AWS cli tool interacts with s3.amazonaws.com . If you have another domain hosting it, you can use --endpoint-url option to point the tool to another domain.

List buckets - with profile

List bucket content - authenticated

Get Bucket Policy

Download one file

Download all files

download all of the bucket’s contents:

List the bucket ACL

List & get objects

Bucket policy

Bucket Policies are attached directly to the bucket and define what actions are allowed or denied by which principal.

More readable

Enumeration - s3api

List of all the bucket in the AWS account

Information about specified bucket ACLs

Information about specified bucket policy

Retrieve the Public Access Block configuration for an Amazon S3 bucket

List of all the objects in specified bucket

ACLs information about the specified object

S3 Misconfiguration - Permissions

S3Scanner

Checkov

Nuclei Templates

AWS Extender - Burp Extension

List Permissions

Read Permissions

Download Permissions

Write Permissions

Make sure to use a filename with a non-trivial name to prevent any disruption

Upload a shell

Read Permissions on ACL

Write Permissions on ACL

You do not have to always necessarily change an ACL to test for write permissions if read permissions are enabled. You can simply check the "Grants" property in the response to a read operation and verify if any unauthorized users are allowed to perform the write operation!

S3 Versioning

List object versions.

S3 - Shadow Resources

Interesting Book

Interesting Books

Disclaimer: As an Amazon Associate, I earn from qualifying purchases. This helps support this GitBook project at no extra cost to you.

Support this Gitbook

I hope it helps you as much as it has helped me. If you can support me in any way, I would deeply appreciate it.

ko-fi

buymeacoffee

Last updated