Public read ACL on export bucket
CWE-284 · Infrastructure agent · Exploitability 8.2
Exploit path
The exports bucket grants public-read. Customer CSV exports can be listed and downloaded without credentials.
Why the fix works
Sets the ACL to private and adds a public access block so a future change cannot silently re-expose the bucket.
resource "aws_s3_bucket_acl" "exports" { bucket = aws_s3_bucket.exports.id acl = "public-read" acl = "private"}resource "aws_s3_bucket_public_access_block" "exports" { block_public_acls = true}- terraform plan: 0 public paths
- Anonymous listing denied
- Signed download URLs unaffected