Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

video-db/director
main @ 70e0b3d
2
Fixes
3
CVEs
CRITICAL
Peak severity
50.0%
Coverage
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
backend/director/entrypoint/api/routes.py: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: Attackers could manipulate collection names to traverse directories and potentially trigger arbitrary path creation in the filesystem during collection initialization. This was fixed by enforcing a character allowlist and using secure_filename verification.
Path Traversal: Insufficient sanitization of user-provided filenames during file uploads exposed the system to path traversal exploits. The vulnerability was mitigated by integrating secure_filename verification into the upload endpoint.