Security context

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

opencsgs/csghub
main @ eecbbd4
7
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 5 prior fixes. Scrutinize any change in this area.
frontend/package.json: most-fixed (1 issue). 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.

Auth Bypass: Unauthenticated requests redirected by the middleware were not aborted, allowing execution of subsequent handlers. Developers must always call Abort() alongside redirects to halt execution.
Auth Bypass: Critical endpoints handling space details, files, blobs, and commits were exposed under unauthenticated route groups. Developers must register all sensitive resource endpoints within authenticated route blocks.
Auth Bypass: Sensitive settings routes (profile, access tokens, SSH keys) were accessible without ensuring a valid current user context, requiring the insertion of CheckCurrentUser middleware.