Security context

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

bghira/simpletuner
main @ 76bb691
20
Fixes
0
CVEs
HIGH
Peak severity
42.1%
Coverage
Highlights
Denial of Service: 8 prior fixes. Scrutinize any change in this area.
simpletuner/simpletuner_sdk/server/middleware/security_middleware.py: most-fixed (3 issues). Treat as high-risk during review.
10 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: Insecure handling of zip extraction in upload services allowed path traversal outside the intended dataset directories. Developers must ensure path canonicalization and strict prefix checks are used for all file operations.
Auth Bypass: Unauthenticated users could bypass permission checks on privileged worker endpoints. Implementing robust user validation before checking permissions is vital for API endpoint security.
Command Injection: Git commit references were susceptible to command argument injection via subprocess.run. Input validation using strict character and prefix allowlists is required to prevent shell execution bypasses.