# AWS S3 Buckets

{% hint style="info" %}
<https://blog.intigriti.com/hacking-tools/hacking-misconfigured-aws-s3-buckets-a-complete-guide>
{% endhint %}

## Checking for S3 buckets

**1.dorking:**

`site:s3.amazonaws.com COMPANY_NAME`&#x20;

`site:amazonaws.com COMPANY_NAME`

**If the company uses custom URLs for its S3 buckets**    &#x20;

`amazonaws s3 COMPANY_NAME`

&#x20;`amazonaws bucket COMPANY_NAME`&#x20;

`amazonaws COMPANY_NAME`

&#x20;`s3 COMPANY_NAME`

## \*\*\*Tools for checking buckets:

[`https://buckets.grayhatwarfare.com/`](https://buckets.grayhatwarfare.com/)

## Accessing via cmd line:

`aws s3 ls s3://BUCKET_NAME/ --no-sign-request`

## *`cyberduck:  easy access of ftp,s3 etc service`*.

## Exploitng S3 bucket:

{% hint style="info" %}
practice in flaws.cloud
{% endhint %}

**using browser.**      `http://bucket-name.s3-website-us-west-2.amazonaws.com/`

**using cli:**    `aws s3 ls s3://flaws.cloud/ --no-sign-request`  &#x20;

**or: &#x20;**&#x20;`aws s3 ls  s3://flaws.cloud/ --no-sign-request --region us-west-2`  *(region can be known by nslookup)*

## when permission is everyone but need aws account:

```
aws s3 --profile YOUR_ACCOUNT ls s3://level2-c8b217a33fcf1f839f6f1f73a00a9ae7.flaws.cloud
```

### when it's need an authenticated user:

```
aws s3 sync s3://level3-9afd3927f195e10225021a578e6f78df.flaws.cloud/ . --no-sign-request --region us-west-2
```

{% hint style="info" %}
check **`git log`** for credencial
{% endhint %}

## Tools for bruteforcing s3 bucket ,azure and other cloud:

1. **cloud\_enum**

```bash
./cloud_enum.py -k tesla 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shahidulandshamim.gitbook.io/web-application/service-based-vulnerability/aws-s3-buckets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
