Security context

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

blackholll/loonflow
master @ a21a90e
16
Fixes
1
CVEs
HIGH
Peak severity
56.3%
Coverage
Highlights
Auth Bypass: 16 prior fixes. Scrutinize any change in this area.
backend/apps/account/views.py: most-fixed (3 issues). Treat as high-risk during review.
13 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: Missing permission guards in ticket mutation views allowed unauthorized actors to alter ticket states, deliver tickets, or close them without validation. Sibling APIs must comprehensively verify user access and state transitions prior to performing ticket lifecycle actions.
Auth Bypass: Incomplete tenant-isolation filtering on account, role, and membership queries allowed cross-tenant data access. Developers must explicitly validate HTTP-header-derived tenant scopes when retrieving or altering tenant associations.
Auth Bypass: Flaws in middleware and signature validation logic, such as incorrect Django HTTP header prefix lookups and database model object extraction issues, broke API-level authentication entirely. This allowed raw requests to bypass signature checks.