Security context

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

zhayujie/cowagent
master @ 915edbe
13
Fixes
3
CVEs
HIGH
Peak severity
36.4%
Coverage
Highlights
Path Traversal: 5 prior fixes. Scrutinize any change in this area.
agent/evolution/executor.py: most-fixed (2 issues). Treat as high-risk during review.
9 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: Improper validation of file paths can allow model-driven tools to read sensitive system files outside the designated workspace, particularly on Windows platforms. Developers must systematically use canonicalization and prefix-matching.
SSRF: Allowing the LLM to fetch arbitrary URLs can lead to SSRF targeting internal services or cloud-metadata endpoints. Safe web-fetching requires resolving addresses to verify they do not point to private space, along with manually handling redirects.
Auth Bypass: Unauthenticated administrative HTTP endpoints allow remote attackers to bypass access controls and execute administrative actions. Secure token management or signature validation is required on all web endpoints.