R2 buckets with a CORS policy that allows any website

CloudflareSecurityTeam planSeverity: lowcloudflare.r2-bucket

R2 buckets whose CORS policy has * in AllowedOrigins, so any website can use a visitor's browser to call the bucket

What LeftSize checks

Find R2 buckets whose CORS policy allows any origin (`*`).

Why it matters

Publicly exposed or unprotected resources are one of the most common causes of cloud security incidents.

What you get in the issue

LeftSize runs this check from a scheduled GitHub Action with a read-only Cloudflare API token that stays on your runner, and opens one issue per Cloudflare account in GitHub or Jira, updated on every scan. The issue includes:

  • The affected resources, grouped per Cloudflare account
  • Background on why it was flagged and when it is a false positive
  • Step-by-step remediation with safety checks
  • Ready-to-run fix scripts (Cloudflare API, Wrangler or Terraform where available)
  • Cost and operational impact of fixing it
  • Alternative approaches and their trade-offs
  • Snooze, ignore or report a finding with a comment on the issue
Install LeftSizeIncluded in the Team and Business plans.

See the @leftsize commands,how LeftSize works andhow to set it up.

Official references