Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

onlook-dev/onlook
main @ 936b015
9
Fixes
3
CVEs
HIGH
Peak severity
87.5%
Coverage
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
(Supabase): most-fixed (1 issue). Treat as high-risk during review.
6 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Project mutations were historically executed without verifying project membership or ownership, permitting authenticated users to modify or delete projects belonging to other users. This was addressed via explicit authorization helper checks before data mutations.
Broken Object Level Authorization: Critical database tables (including projects, canvas, user_projects, user_canvases, frames, and users) lacked Row-Level Security (RLS) policies, posing a system-wide authorization bypass risk. Patches enforced explicit RLS policies across these entities.
Auth Bypass: The project deployment and hosting endpoints processed incoming requests without verifying user identity, which allowed unauthorized hosting operations. It was resolved by introducing a central authenticateUser check.