DIS-005: Path-Traversal-Check in /new-agent #6
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#6
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
/new-agent name:<x>akzeptiert keinen Namen, der aus dem Workspace-Root ausbricht. Defense in depth: Regex +path.resolve-Containment-Check.Kontext
Edge-Cases:
.., Unicode-Homoglyphen,., leere Strings, Windows-reserved Names.Referenz:
docs/development-plan.mdPhase 0 Task 4Scope
In: Nach Regex in
new-agent.ts: Containment-Check viapath.resolve. Saubere User-Fehlermeldung in Discord.Definition of Done
src/commands/new-agent.tstests/unit/path-traversal.test.tsdeckt../etc,..,./foo,a/../b, leerer String,CON, Unicodenpm run build && npm testgruenBranch
phase-0/path-traversal-checkAbhaengigkeiten
Keine.