Security context

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

Wei-Shaw/sub2api
main @ b5827cf
111
Fixes
0
CVEs
CRITICAL
Peak severity
30.8%
Coverage
Highlights
Auth Bypass: 57 prior fixes. Scrutinize any change in this area.
backend/internal/service/auth_service.go: most-fixed (10 issues). Treat as high-risk during review.
78 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: Numerous fixes target registration, login, token issuance, and OAuth flows, showing a recurring failure to enforce fail-closed defaults and proper authorization checks.
Auth Bypass: API key middleware repeatedly missed authorization checks (group availability, quota/expiry, IP ACL), allowing continued access after revocation or to restricted groups.
Information Disclosure: Audit logs repeatedly stored plaintext credentials (session cookies, request bodies), requiring redaction and omission routes to prevent leakage.