You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🔒 Security: Git diff arguments not separated with -- #73
get_branch_diff() and get_commit_diff() in src/git/diff.rs:38-58 pass user-provided strings directly to git_cmd(). While Rust's Command API prevents shell injection, a malicious branch name like --exec could be interpreted as a git flag.
Current Mitigation
Command::new("git").args(args) uses execvp-style argument passing — NOT shell injection ✅
ref_str.contains("..") check is semantic, not security
Suggested Fix
Add -- separator in git diff commands to prevent argument injection.
Activity
ajianaz commentedon Jun 1, 2026
Closed in v0.1.7 release
fix: profiles bugs — path resolution, fail-fast, dedup merge (#238) (#…
fix: resolve minor best-practice items from #334 (#344)