Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
src/agent/tools/write/fileIO.ts: most-fixed (2 issues). Treat as high-risk during review.
3 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: Shared auto-approval states between distinct write tools allowed high-risk file operations to inherit approval granted to shell commands. Developers must ensure state variables for auto-approving agent actions are strictly isolated and not globally shared.
Path Traversal: The file writing tool lacked strict path validation, allowing an LLM agent to potentially write or overwrite files outside the configured directory. Restricting file operations requires canonicalizing paths and enforcing prefix checks.
Auth Bypass: Risky shell commands and local package management tasks could execute without explicit user validation. Commands that trigger shell pipes or system automation must always fail closed and require explicit, manual user confirmation.