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
harden(cargo): strip RUSTC_WRAPPER / CARGO_TARGET_*_RUNNER / RUSTFLAGS env vars #34
Zero-trust layer on cargo wrapping. cargo build itself runs arbitrary code by design (build.rs, proc-macros) — we accept that surface. What we DON'T need to accept is env-injected RUSTC_WRAPPER redirecting EVERY rustc invocation to an attacker binary, including for benign cargo check runs that should never escalate.
Pattern
Same as #33 — secure_cargo_command() + check_forbidden_cargo_args() in src/core/utils.rs, wire into src/cmds/rust/cargo_cmd.rs.
Activity
Merge pull request #43 from thehoff/harden/cargo
feat(security): add generalized secure_command + universal env-strip (t…
fix(security): harden cargo wrapper against env + --config RCE (theho…