Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/sentinel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 2024-05-24 - Command Injection in Git Clone
**Vulnerability:** User-controlled paths passed to `std::process::Command::new("git").arg("clone")` could be interpreted as flags if they started with `-`.
**Learning:** `git clone` arguments parsed from external sources (e.g. database values, user inputs) can trigger unexpected behavior or arbitrary command execution if a path resembling a flag is supplied.
**Prevention:** Always use `--` to signify the end of options before passing positional arguments to `git clone` (and similar commands) within `std::process::Command`.
Loading
Loading