Security context

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

superglue-ai/superglue
main @ fc05430
14
Fixes
0
CVEs
HIGH
Peak severity
53.8%
Coverage
Highlights
Auth Bypass: 8 prior fixes. Scrutinize any change in this area.
packages/core/auth/supabaseKeyManager.ts: most-fixed (2 issues). Treat as high-risk during review.
10 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: A bypass allowed WebSocket upgrade requests to completely skip authentication middleware, exposing internal interfaces to unauthorized actions.
Auth Bypass: The OAuth callback flow relied on client-side state parameters for authentication. Storing and verifying the session identifier in a secure, HttpOnly cookie is necessary to prevent authorization bypass.
Information Disclosure: Exposing the privileged Supabase service role key to the frontend due to a 'NEXT_PUBLIC_' prefix represents a critical risk of complete backend compromise.