Security context

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

coaidev/coai
main @ 3048a49
14
Fixes
0
CVEs
HIGH
Peak severity
70.0%
Coverage
Highlights
Auth Bypass: 8 prior fixes. Scrutinize any change in this area.
auth/auth.go: most-fixed (3 issues). Treat as high-risk during review.
7 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 user ownership verification on loaded conversations permitted users to query and retrieve other users' chat logs. Developers must enforce strict user-ID matching on database lookups.
Auth Bypass: The model authorization rule engine defaulted to allowing access inside switch statements. It must be refactored to deny access by default unless the request is fully authenticated and entitled.
Cross-Site WebSocket Hijacking: Insecure WebSocket upgrades without CheckOrigin validation exposed chat sockets to hijacking from arbitrary domains. Real-time connections require mandatory origin and session token verification.