Security context

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

xalgord/xalgorix
main @ ef84433
17
Fixes
0
CVEs
HIGH
Peak severity
28.6%
Coverage
Highlights
Insecure Permissions: 3 prior fixes. Scrutinize any change in this area.
internal/agent/agent.go: most-fixed (2 issues). Treat as high-risk during review.
8 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: Arbitrary directory deletion was possible via unvalidated paths in the DELETE data directory endpoint. Future filesystem-mutating functions must utilize canonical path validation and prefix checks before executing operations.
Server-Side Request Forgery: LLM agent execution tools allowed pivoting to out-of-scope hosts and local/private network interfaces. Tight target-scope boundaries must be validated across all tools and agent integrations to prevent network probing.
Path Traversal: The authentication profile key resolution logic was vulnerable to path traversal, allowing access to files outside the intended single-segment profiles directory. Profile resolution logic must reject multi-segment paths and URL-encoded slashes.