Security context

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

agentset-ai/agentset
main @ 1f79eda
11
Fixes
0
CVEs
HIGH
Peak severity
45.5%
Coverage
Highlights
Auth Bypass: 6 prior fixes. Scrutinize any change in this area.
apps/web/src/lib/auth.ts: most-fixed (2 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: Session cookie caching and local Next.js cookie plugin integrations allowed raw authentication states and session tokens to be shared across distinct client requests. Subsequent hardening required complete removal of session cookie caching to prevent session hijacking and cross-user token leakage.
Auth Bypass: The lack of strict validation on tenant identifiers allowed directory traversal or vector-store namespace injection. Attackers could query or overwrite vectors belonging to other tenants by manipulating the 'x-tenant-id' request header, necessitating regex restriction to alphanumeric values.
Unrestricted Upload of File with Dangerous Type: Bypasses in file-type verification occurred due to uppercase extension matching and a lack of MIME content-type assertions. Upload handlers were vulnerable to malicious script uploads until validations were centralized, case-insensitive, and bound directly to strict API schemas.