Security context

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

coze-dev/coze-studio
main @ 22275b1
17
Fixes
1
CVEs
HIGH
Peak severity
18.8%
Coverage
Highlights
Auth Bypass: 8 prior fixes. Scrutinize any change in this area.
backend/domain/memory/database/service/database_impl.go: most-fixed (4 issues). Treat as high-risk during review.
15 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.

SQL Injection: The custom SQL execution path has historically allowed remote attackers to execute arbitrary SQL commands by bypassing simple blocklists, leading to CVE-2026-7023. Restricting JOINs and using simple keyword filters is brittle; dynamic tables and user-defined queries must be rigorously validated using parsed SQL AST syntax checks.
Auth Bypass: Authorization constraints and multi-tenant isolation filters injected via SQL AST modifiers have historically failed due to incorrect operator nesting or missing filters on custom SQL executions, exposing cross-tenant data.
SQL Injection: Concatenation of raw input strings inside GORM queries for specialized storage engines (like Oceanbase vectors or dynamic MySQL schemas) bypasses standard framework protections.