Security context

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

infisical/agent-vault
main @ 0df6d5d
21
Fixes
0
CVEs
HIGH
Peak severity
37.5%
Coverage
Highlights
Auth Bypass: 12 prior fixes. Scrutinize any change in this area.
internal/server/server.go: most-fixed (5 issues). Treat as high-risk during review.
10 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 server endpoints frequently suffer from authorization bypasses where restricted or non-creator users could call instance-scoped APIs, access unauthorized vaults, or manipulate invitations due to missing or flawed middleware checks.
Container Escapes / Sandbox Bypass: Docker container management functions are susceptible to directory mount validation issues, allowing malicious containers to escape their sandbox and mount sensitive host system directories or sockets.
Privilege Escalation: Flawed role-based access control allowed lower-privilege users or proxy-role agents to manage owner-role agents and self-approve execution proposals, resulting in the leakage of high-privilege tokens.