fix: harden safe-bin argument validation [AI]#80999
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. By source inspection, current main accepts these safe-bin value and positional tokens through Real behavior proof Next step before merge Security Review detailsBest possible solution: Land the fail-closed validator and POSIX shell-payload rewrite after the contributor supplies redacted real Do we have a high-confidence way to reproduce the issue? Yes. By source inspection, current main accepts these safe-bin value and positional tokens through Is this the best way to solve the issue? Yes. The proposed direction is the narrow maintainable fix: reject expansion carriers in the shared safe-bin validator and rebuild POSIX safe-bin shell payloads before dispatch, with merge held for proof and protected-label handling. Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against ac3bf79d9d8b. |
|
Not applicable to this automation stage; changelog/release-note and external real behavior proof requirements are handled outside auto-pr stages. Quoted comment from @clawsweeper:
|
# Conflicts: # src/infra/exec-approvals-allowlist.ts
* fix: reject shell expansion in safe-bin tokens * fix: complete safe-bin shell payload handling * addressing codex review * addressing ci * addressing ci * addressing codex review * docs: add changelog entry for PR merge
* fix: reject shell expansion in safe-bin tokens * fix: complete safe-bin shell payload handling * addressing codex review * addressing ci * addressing ci * addressing codex review * docs: add changelog entry for PR merge
* fix: reject shell expansion in safe-bin tokens * fix: complete safe-bin shell payload handling * addressing codex review * addressing ci * addressing ci * addressing codex review * docs: add changelog entry for PR merge
* fix: reject shell expansion in safe-bin tokens * fix: complete safe-bin shell payload handling * addressing codex review * addressing ci * addressing ci * addressing codex review * docs: add changelog entry for PR merge
Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
Root Cause (if applicable)
Regression Test Plan (if applicable)
User-visible / Behavior Changes
Safe-bin allowlist mode is stricter for shell-expanded argument tokens. Commands using those forms now require approval or fail allowlist matching instead of being auto-allowed.
Diagram (if applicable)
Security Impact (required)
Repro + Verification
Environment
Steps
Expected
Actual
Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
Compatibility / Migration
Risks and Mitigations
AI-assisted: yes