AltimateAI / AltimateAI/altimate-code

fix: add path traversal guard for {file:path} config interpolation

Aperta
#698 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
811
Fork
134
Merge medio
3g 2h
PR unite (30g)
50

Descrizione

Found during v0.5.21 release review. The `{file:path}` substitution in `config/paths.ts` has no path traversal guard — `{file:../../etc/passwd}` or `{file:~/.ssh/id_rsa}` would be resolved. Currently low risk since configs are user-authored, but should be hardened if configs are ever loaded from less-trusted sources (e.g. shared repo `.opencode/opencode.json`).

Deferred because: requires design (path jail under config dir or project root, ~45 min).

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.