Skip to content

Files stored in private buckets can be accessed by anyone using the image transformation url #286

@yowzadave

Description

@yowzadave

Bug report

Describe the bug

If I create a private bucket and store an image in it, then the file is accessible to anyone who uses the image transformation URL, regardless of RLS rules/authentication.

To Reproduce

Store any image file in a private bucket:

const result = await supabase.storage
  .from("files")
  .upload("my-secret-image.jpg", data, { contentType: "image/jpeg" });

Then visit the following URL from any browser to access the file:

https://mysupabaseid.supabase.co/storage/v1/render/image/public/files/my-secret-image.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions