auth icon indicating copy to clipboard operation
auth copied to clipboard

PUT /USER is abusable

Open ZhenFTW opened this issue 1 year ago • 1 comments

Bug report

Hi i just notice that the PUT /USER endpoint can be abused for adding putting data.

image

is it intended?

ZhenFTW avatar Sep 11 '24 06:09 ZhenFTW

this can be abused by anyone just because everyone authenticated can access this endpoint and they can flood the /PUT user endpoint to set user data. But I think this could be disabled using RLS policy but seeing this is a default behavior might not be a good idea.

ZhenFTW avatar Sep 11 '24 06:09 ZhenFTW

Thanks for the report, while this conscience design decision makes Supabase powerful you make a good point that it puts some responsibility on users to have good RLS policies. I'll discuss with team to see if there are opportunities for better documentation / user education. I don't think that changing defaults is on the table though.

cstockton avatar Dec 12 '24 23:12 cstockton