Security context

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

bufanyun/hotgo
v2.0 @ c6191f7
5
Fixes
2
CVEs
HIGH
Peak severity
20.0%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
server/internal/logic/admin/member.go: most-fixed (2 issues). Treat as high-risk during review.
4 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: Insecure handling of member and department relationships allowed administrative privilege escalation and unauthorized modifications of backend users. Developers must strictly validate nested role and department identifiers on user creation and modification.
Auth Bypass: Flawed logic in data authorization filtering permitted parent ID manipulation in SQL query generation, leading to vertical privilege escalation. Future changes to database query interceptors must verify that nested scope limitations cannot be bypassed.
Auth Bypass: Tokens were successfully validated even if the corresponding user account was disabled or deleted. Active database-backed verification of user and role statuses must be enforced at token parsing time to prevent disabled sessions from remaining active.