DIS-002: shell:false + cross-spawn Windows-Fix im Runner #3
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#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Ziel
Command-Injection ueber Discord-Input eliminieren.
shell: trueausrunner.tsentfernen. Windows-.cmd-Wrapper korrekt aufloesen, CVE-2024-27980 umgehen.Kontext
src/agent/runner.tsnutzt aktuellshell: true-- Shell-Injection-Vektor.spawn('claude', args, { shell: false })schlaegt auf Windows fehl (nurclaude.cmd).Referenz:
docs/development-plan.mdAbschnitt 2.2Scope
In:
cross-spawnals Dependency,src/runtime/resolve-claude.tsmitresolveClaude(),runner.ts:shell: false,windowsHide: true, UTF-8-EncodingOut:
sanitizedEnv()(DIS-003),--bare-Flags (DIS-004)Definition of Done
shell: trueim gesamtensrc/-Baumcross-spawninpackage.jsonresolveClaude()wirft klare Fehlermeldung wenn nicht auffindbartests/unit/resolve-claude.test.tsgruennpm run build && npm testgruenBranch
phase-0/harden-spawnAbhaengigkeiten
Keine. Empfohlener Startpunkt.