AltimateAI / AltimateAI/altimate-code
fix: add path traversal guard for {file:path} config interpolation
Abierto
- Lenguaje dominante
- TypeScript
- Estrellas
- 811
- Forks
- 134
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 50
Descripción
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).
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.