060edda3ae3063dc2c991cdeb2de0a13e8962478
**Security Issue**: - chunk_thumbnail: file_uuid/chunk_id unvalidated → path traversal - chunk_thumbnail: cache-hit missing JPEG validation → content-type confusion - scene_thumbnail: file_uuid unvalidated → path traversal **Fixes**: 1. Added is_valid_file_uuid() in validator.rs - 32 chars, lowercase hex only - Blocks any path containing / or .. 2. Added is_valid_chunk_id() in validator.rs - [a-zA-Z0-9_-]+, length <= 128 - Matches all 5226 existing chunks (cut_, time_, pure digits) - Blocks traversal sequences 3. chunk_thumbnail (media_api.rs:1162): - Added validation before path construction - Added JPEG validation for cache-hit - Returns 404 for invalid input 4. scene_thumbnail (media_api.rs:965): - Added file_uuid validation - filename already validated (scene_<N>.jpg) **Verification**: - Defense in depth: character whitelist + canonicalize - No regression: all existing chunk_id formats pass - Mitigation: both handlers behind protected_routes (auth required)
momentry_core
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Description
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Releases
2
v0.9.20260325_151200
Latest
Languages
PLpgSQL
30.5%
Python
27.4%
HTML
20.4%
Rust
13.3%
Shell
3.1%
Other
5.2%