Security context

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

beam-cloud/beta9
main @ 4224abf
42
Fixes
1
CVEs
CRITICAL
Peak severity
27.5%
Coverage
Highlights
Auth Bypass: 14 prior fixes. Scrutinize any change in this area.
pkg/api/v1/token.go: most-fixed (4 issues). Treat as high-risk during review.
25 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 platform relies heavily on gRPC communication, where multiple authorization bypasses occurred due to faulty interceptor allowlists, variable shadowing during token verification, and broken error-handling logic. This allows remote clients to bypass authentication and execute privileged actions.
Information Disclosure: Multiple endpoints serving task, stub, and deployment data omitted proper sanitization loops, exposing sensitive environment variables and credentials to unauthorized users. Failure to consistently call sanitization helper functions remains a recurring issue.
Path Traversal: Sandbox filesystem RPCs and local file-extraction utilities were vulnerable to path traversal attacks (including Zip Slip), which allowed unauthorized directory access and file overwrites due to improper path validation. This is associated with CVE-2025-69820.