Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: only anonymous permissions checked properly #328

Closed
sa7mon opened this issue Jun 14, 2024 · 2 comments · Fixed by #337
Closed

bug: only anonymous permissions checked properly #328

sa7mon opened this issue Jun 14, 2024 · 2 comments · Fixed by #337
Labels

Comments

@sa7mon
Copy link
Owner

sa7mon commented Jun 14, 2024

Bug

The default AWS credentials file ~/.aws/credentials is not being read, thus only checks for anonymous permissions are being made. AuthUsers in the output will likely always be [] - meaning "no permissions". This can be a false negative.

Reproduction

  • Create a bucket in AWS S3 with no READ permissions (except implicit permission to the owner)
  • Configure credentials with aws configure
  • Run s3scanner -bucket your-bucket-here
  • Observe the output INFO exists | your-bucket-here | us-east-1 | AuthUsers: [] | AllUsers: []

Expected output

INFO exists | s3scanner-private | us-east-1 | AuthUsers: [READ, READACP] | AllUsers: []

Thank you to Twitter user @thaivd98 for reporting this.

@sa7mon sa7mon added the bug label Jun 14, 2024
@thaivd98
Copy link

thank bro :D hope it will be fixed soon 🤪

@sa7mon sa7mon pinned this issue Aug 27, 2024
@sa7mon sa7mon linked a pull request Sep 8, 2024 that will close this issue
@sa7mon sa7mon unpinned this issue Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants