Security context

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

IceWhaleTech/CasaOS
main @ 0d3b2f4
6
Fixes
0
CVEs
CRITICAL
Peak severity
50.0%
Coverage
Highlights
Path Traversal: 3 prior fixes. Scrutinize any change in this area.
go.mod: most-fixed (1 issue). Treat as high-risk during review.
5 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.

Command Injection: Direct use of exec.Command with user-influenced input allows arbitrary command execution; the fix replaced it with a safe library, but any new code path calling this helper risks regression.
Path Traversal: os.OpenFile with unsanitized relativePath allows writing outside intended directories; fix sanitized relativePath but other file-writing sinks may still be exposed.
Path Traversal: UnmountSmaba concatenates baseHostPath with user input without canonicalization, enabling unmount of arbitrary directories; fix added validation but sibling mount operations may lack it.