HexBrain

Eternal · Report #229690

Amazon S3 bucket misconfiguration (share)

Validstatus
18upvotes
18 May 2017disclosed

How it was found

Hi,

Description

I have discovered one of your Amazon S3 bucket and tested it via the AWS command line tool on Linux. It looks like permissions are not well configured and allow dangerous actions to everyone.

The vulnerable bucket is: zomato-share

PoC:

aws s3 ls s3://zomato-share aws s3 cp test s3://zomato-share aws s3 rm s3://zomato-share/test

See the attached screenshots.

{F185826}

Risk:

  • Company impersonation, serve datas using your name
  • Illegal file hosting (like movies, mp3 or whatever...)
  • Files can be deleted
  • Files can be overwritten by shitty content (like porn)
  • Files can be infected by malicious content in an attempt to infect users or staff

Since the bucket doesn't host any critical files, the impact is very low but still something you have to fix for the reasons previously mentionned.

Remediation:

Check all buckets owned by your company and the ACL to forbid dangerous actions to unauthorized users.

Additional note:

Since there is no way to check the owner of a bucket, it's possible that those buckets don't belong to you. In that case, I strongly apologize for the disturbance.

Best regards,

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original