Accusys 060edda3ae fix: A-6 security patch - path traversal prevention
**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)
2026-10-05 04:32:28 +08:00
2026-10-05 00:05:41 +08:00
2026-09-28 19:27:43 +08:00
2026-03-25 14:51:25 +08:00

momentry_core

Digital asset management system with video analysis and RAG - Production version with API Key authentication

S
Description
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Readme 1.6 GiB
2026-03-25 15:49:30 +08:00
Languages
PLpgSQL 30.5%
Python 27.4%
HTML 20.4%
Rust 13.3%
Shell 3.1%
Other 5.2%