Highlights
Denial of Service: 18 prior fixes. Scrutinize any change in this area.
src/server/app/threads.py: most-fixed (6 issues). Treat as high-risk during review.
24 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: Attackers could bypass authentication or spoof internal tasks by injecting internal message attributes like `report_back_ptc_thread_id` and `query_type` due to a lack of service token verification. In addition, legacy authentication headers like `X-User-Id` allowed remote impersonation before being replaced with strict Bearer token checks.
Denial of Service: Asynchronous tasks, particularly Daytona sandbox calls and file uploads/downloads, frequently lacked timeouts, leading to hung event loops, worker thread exhaustion, and persistent resource locks.
Path Traversal: File transfer and execution mechanisms in the sandbox failed to properly canonicalize paths before validating directory bounds, allowing malicious paths to escape target sandboxes.