When Supabase Api Key Misuse Turns Vibecoding Into Vibeleaking
A hackathon website exposed its Supabase anon key with no Row-Level Security, letting anyone read private tables such as an interested list, sponsors, problem statements and admin-only proposals. The same key could also call an RPC that changed problem slots and an email function that sent branded messages from the company domain.
Published on medium.com
Supabase is the cool kid riding the 2025 trend wave. Every hackathon portal, MVP, and SaaS startup slaps it in, vibecoding their way through, then dumping the anon key into the frontend like it’s harmless.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the project relied on Supabase defaults: Row-Level Security was not enabled, RPC functions were callable by anonymous users, and the anon key was treated as harmless.
Impact
Anyone with the public key could read personal data and admin-only proposals, alter hackathon slots, and send emails that appeared to come from the company.
What the attacker needed
Publicly exposed anon key; no login needed
The fix
The text does not say it was fixed; it recommends enabling and testing Row-Level Security, keeping service-level functions away from the anon key, and gating RPC endpoints with proper authentication.
How it was found
- Use the publicly exposed anon key against the Supabase project endpoint.
- Query tables such as the interested list, sponsors, problems and submissions to read private records.
- Call the reduce_slots RPC to change the number of available problem slots.
- Call the send-email function to send branded emails from the company domain.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Supabase is a hosted database service that gives a website a public 'anon' key so the browser can talk to it. That key is meant to be safe because database rules should limit what it can read or do. Here the rules were missing, so the public key worked like a master key for private data and actions.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.