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

Mitigating AWS S3 Cost Escalation: Risks of Public Object Access #1

Open
erickcestari opened this issue Mar 30, 2024 · 0 comments
Open

Comments

@erickcestari
Copy link

Two websites, https://www.havan.com.br and https://portalcliente.havan.com.br, are directly accessing images from an S3 bucket without any restrictions. This lack of access controls opens up the possibility of malicious actors exploiting the system by generating bots or scripts to spam requests. This could lead to heightened data transfer and increased costs associated with GET requests on AWS S3.

To address this issue, several measures can be taken:

  • Implement rate limiting to mitigate instances of spam, controlling the frequency of requests from a single source.

  • Utilize AWS CloudFront, a content delivery network service, to cache the images. This can help reduce the load on the S3 bucket and mitigate spam by serving cached content closer to the end users, thereby minimizing the number of requests directly hitting the S3 bucket.

By implementing these measures, the risk of spamming and associated increased costs can be mitigated, ensuring better security and cost-efficiency for the S3 bucket usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant