Highlights
Path Traversal: 3 prior fixes. Scrutinize any change in this area.
internal/app/app.go: most-fixed (2 issues). Treat as high-risk during review.
6 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.
Command Injection: The application permits tool execution via system commands. Insufficient escaping and validation of input arguments passed to shell execution paths allows arbitrary system-level command execution, compromising the host system.
Path Traversal: Parameters directly reflecting file paths were not canonicalized and matched against base directory prefixes, enabling attackers to read, write, or rename arbitrary files outside the designated chat uploads and result storage directories.
Auth Bypass: A lack of uniform authentication middleware historically exposed internal APIs and the main web interface to unauthorized access. High-risk actions could be executed by unauthenticated users.