project-nomad/admin/app/services
Chris Sherwood b532a8f056
fix(security): path traversal and SSRF protections from pre-launch audit
Fixes 4 high-severity findings from a comprehensive security audit:

1. Path traversal on ZIM file delete — resolve()+startsWith() containment
2. Path traversal on Map file delete — same pattern
3. Path traversal on docs read — same pattern (already used in rag_service)
4. SSRF on download endpoints — block private/internal IPs, require TLD

Also adds assertNotPrivateUrl() to content update endpoints.

Full audit report attached as admin/docs/security-audit-v1.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 21:06:38 +00:00
..
benchmark_service.ts fix(Benchmark): improved error reporting and fix sysbench race condition 2026-02-11 22:09:31 -08:00
chat_service.ts fix(AI): leave chat suggestions disabled by default 2026-02-18 14:52:06 -08:00
collection_manifest_service.ts fix: update default branch name 2026-03-01 16:08:46 -08:00
collection_update_service.ts feat: curated content update checking 2026-02-11 21:49:46 -08:00
container_registry_service.ts feat: support for updating services 2026-03-11 21:06:38 +00:00
docker_service.ts feat: support for updating services 2026-03-11 21:06:38 +00:00
docs_service.ts fix(security): path traversal and SSRF protections from pre-launch audit 2026-03-11 21:06:38 +00:00
download_service.ts fix(Downloads): sort active downloads by progress descending 2026-02-08 13:14:04 -08:00
map_service.ts fix(security): path traversal and SSRF protections from pre-launch audit 2026-03-11 21:06:38 +00:00
ollama_service.ts fix(AI): allow force refresh of models list 2026-03-11 21:05:49 +00:00
queue_service.ts feat: background job overhaul with bullmq 2025-12-06 23:59:01 -08:00
rag_service.ts feat(RAG): allow deletion of files from KB 2026-03-04 20:05:14 -08:00
system_service.ts feat: support for updating services 2026-03-11 21:06:38 +00:00
system_update_service.ts fix: update channel flexibility 2026-03-05 04:06:56 +00:00
zim_extraction_service.ts feat: zim content embedding 2026-02-08 13:20:10 -08:00
zim_service.ts fix(security): path traversal and SSRF protections from pre-launch audit 2026-03-11 21:06:38 +00:00