Highlights
Auth Bypass: 7 prior fixes. Scrutinize any change in this area.
backend/routes/brain_routes.py: most-fixed (3 issues). Treat as high-risk during review.
14 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: Multiple endpoints lacked authentication or role checks, allowing unauthorized users to access or modify brain data; critical because brain operations are central to the application.
Privilege Escalation: Editors could grant Owner-level permissions via invitation or subscription update endpoints, violating role-based access control.
Access Control: Chat and file upload endpoints lacked authorization checks, allowing users without proper roles to interact with brains.