Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
ast.go: most-fixed (4 issues). Treat as high-risk during review.
4 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: The AST evaluator has repeatedly failed to resolve and enforce privileges for nested subqueries, allowing users to bypass database-scoped access controls by wrapping unauthorized queries in nested SELECT statements. Developers must ensure recursive traversal of all AST sources to correctly collect required privileges.
Auth Bypass: The parser has historically failed to associate database-specific authorization checks with explicit administrative and metadata statements (such as SHOW MEASUREMENTS ON <db> or continuous query statements), defaulting to insecure empty or global-scoped privilege checks.
Auth Bypass: Standard SELECT statements failed to exhaustively resolve and return required read privileges for all underlying queried sources during AST evaluation, leading to inconsistent authorization enforcement.