S3 - Simple Storage Service
S3 misconfigurations
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

Upload a shell
Read Permissions on ACL
Write Permissions on ACL
S3 Versioning
List object versions.
S3 - Shadow Resources
Interesting Book
Interesting BooksAdvanced Penetration Testing: Hacking AWS 2 This book delves deeper into analyzing the security of various AWS services and shows techniques and tactics used by an attacker to breach an AWS environment
Hands-On AWS Penetration Testing with Kali Linux Set up a virtual lab and pentest major AWS services, including EC2, S3, Lambda, and Cloud
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.
Last updated
