Git Product home page Git Product logo

bucket-flaws's Introduction

Bucket Flaws (S3 Bucket Mass Scanner)

Bucket Flaws: A Simple Lightweight Script that can take a list of bucket names and check for Common S3 Bucket Misconfigurations

Image of BucketFlaws

This is a very small and light bash script that can take both a list of buckets as well a single bucket and perform some basic security checks.

Misconfigurations

1) Unauthenticated Bucket Access

  • Checks for Directory Listing
  • Tries to upload a file (upload.png)

2) Authenticated Bucket Access (This means being authenticated to any aws account)

Bucket Level Checks

  • Checks for Directory Listing
  • Checks for some interesting files/folders based on the keywords provided in the sensitive.txt
  • Tries to fetch the Bucket ACL
  • Tries to upload a file (bucket.png)
  • Tries to dump the whole bucket (optional -d flag)
  • Tries to modify the Bucket ACL (optional -p flag)

Object Level Checks

  • Tries to fetch object ACL
  • Tries to fetch object metadata
  • Tries to dump the object (optional)
  • Tries to modify the object ACL

Usage

Install Reqirements:

pip install -r requirements.txt

Usage: -u for single bucket -f for file containing the list of all the buckets -o for performing object level analysis -p for changing the bucket ACL if allowed -d for dumping the whole bucket if allowed -h for help

Eg: ./bucketflaws.sh -u bucketname
./bucketflaws.sh -f filepath

For performing object level checks as well:
./bucketflaws.sh -u bucketname -o

For modifying Bucket ACL if possible:
./bucketflaws.sh -u bucketname -o -p

Performs all the checks as well as tries to dump the whole bucket(Recommended way):
./bucketflaws.sh -u bucketname -o -p -d

Same as above but for a list of buckets:
./bucketflaws.sh -f filepath -o -p -d

Image of BucketFlaws -u

Image of BucketFlaws -f

Walkthrough

Bucket-Flaws

NOTE: For Authenticated Check you need to make sure you have configured your aws cli.

Refer this link for configuring AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html

bucket-flaws's People

Contributors

nikhil1232 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.