DIS-002: shell:false + cross-spawn Windows-Fix im Runner #21
No reviewers
Labels
No labels
blocked
needs-review
phase:0
phase:1
phase:1.5
phase:2
phase:3
phase:4
phase:5
phase:6+
priority:p0
priority:p1
priority:p2
security
type:chore
type:ci
type:docs
type:feat
type:fix
type:idea
type:known-issue
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dev/disclaw#21
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-0/harden-spawn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
shell: trueaussrc/agent/runner.tsentfernt → Command-Injection-Vektor geschlossencross-spawnals Dependency eingeführt → Windowsclaude.cmd-Problem gelöst (CVE-2024-27980)src/runtime/resolve-claude.tsneu:resolveClaude()mit CLAUDE_PATH-Override, PATH-Fallback, In-Memory-Cache, klarer Error-Messagestdout/stderr)Closes
Closes #3
Test Plan
grep -r "shell: true" src/→ leernpm run build→ grün (keine TypeScript-Fehler)npm test→ 5/5 Tests grün (resolve-claude.test.ts)cross-spawninpackage.jsonBreaking Changes
Nein. Internes Spawn-Verhalten geändert, keine öffentliche API betroffen.
Reviewer-Checkliste
shell: trueinsrc/(grep -r "shell: true" src/→ leer)process.envdirekt im Runner (noch nicht — kommt in DIS-003)console.*im Produktionscode