Security context

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

aidc-ai/comfyui-copilot
main @ f04a01a
4
Fixes
1
CVEs
HIGH
Peak severity
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
backend/controller/conversation_api.py: most-fixed (2 issues). Treat as high-risk during review.
3 high-severity fixes 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: The model download API previously failed to restrict destination paths, allowing attackers to write files outside the intended directories via path traversal. Developers must ensure all file paths are canonicalized and validated against a strict allowed prefix boundary.
Auth Bypass: An unauthenticated debug endpoint (streamDebugAgent) historically allowed remote clients to execute arbitrary debugging operations, presenting a severe unauthorized control vector if left exposed.
Insecure Encryption: Executing in non-secure HTTP contexts where the Web Crypto API is unavailable previously led to failures or insecure fallback mechanisms during RSA encryption operations.