Security context

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

skypilot-org/skypilot
master @ 7419c53
71
Fixes
0
CVEs
HIGH
Peak severity
28.1%
Coverage
Highlights
Auth Bypass: 21 prior fixes. Scrutinize any change in this area.
sky/server/server.py: most-fixed (12 issues). Treat as high-risk during review.
32 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: Frequent authorization and policy bypasses occurred because user identities, API tokens, and workspace-level permission layers were either bypassed, not synchronized during concurrent requests, or loaded in the incorrect middleware order.
Command Injection: Shell commands constructed via direct string interpolation or unsafely passed paths allowed command execution during provisioning, mount operations, and remote execution.
Path Traversal: Missing path canonicalization and failure to check for directory traversal structures in zip extractions and streaming downloads allowed arbitrary file reads and writes.