Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
src/permission/checker.rs: most-fixed (3 issues). Treat as high-risk during review.
5 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 permission check mechanism failed to strictly deny destructive actions when operating under permissive configurations (like YOLO mode), down-grading critical blocks to mere prompts. Developers must ensure that 'Deny' decisions always take precedence and fail closed.
Path Traversal: Validation of the working directory boundary was vulnerable to path traversal because relative directory symbols and paths were not fully canonicalized before prefix verification, allowing unauthorized local file access.
Auth Bypass: The system allowed execution of arbitrary commands by evaluating only the first instruction in a chain, bypassing authorization constraints when operators like '&&' or '||' were present. Multi-command strings must be explicitly parsed and validated.