pentesting, updated

Test cloud storage

Check whether cloud buckets (S3 and equivalents) allow unauthenticated read, write or delete.

Goal

Confirm storage buckets referenced by the app enforce access control instead of trusting obscurity.

How to test

Identify the access style, then probe anonymously:

https://my-bucket.s3.us-west-2.amazonaws.com/file.png   # virtual-hosted style
https://s3.us-west-2.amazonaws.com/my-bucket/file.png    # path style
aws s3 ls s3://my-bucket --no-sign-request              # list without credentials
curl -s https://my-bucket.s3.amazonaws.com/              # list via plain HTTP, if public
aws s3 cp test.txt s3://my-bucket/test.txt --no-sign-request   # probe write access

See aws-cli for more.

What to look for

A bucket that lists its contents, allows anonymous GetObject on sensitive files, or accepts an anonymous PutObject/DeleteObject.

Notes

Writing or deleting objects changes state on a live bucket — only do it with explicit scope and preferably a disposable test key, never on data you can’t restore.

References

§ home
~/knubertus/home/
1,1 Top