Highlights
Auth Bypass: 30 prior fixes. Scrutinize any change in this area.
server/src/handlers/auth_handler.rs: most-fixed (5 issues). Treat as high-risk during review.
32 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: Critical middleware checks frequently failed to apply default query/filter restrictions, failed to map scope-based permissions to user sessions, or permitted bypasses if organization headers were omitted. This represents the primary route-guard failure vector.
Auth Bypass: The custom request extractors (AdminOnly, OwnerOnly) incorrectly performed comparison checks against 'org.id' rather than 'org.organization_id' and failed to validate if the user actually belonged to the organization, leading to complete tenant authorization bypasses.
Auth Bypass: The platform suffered from several BOLA bugs where dataset reads, updates, deletes, and config lookups could be executed globally via tracking IDs or dataset IDs without verifying tenant context or caller memberships.