Security context

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

flipped-aurora/gin-vue-admin
main @ 7d3f0c7
54
Fixes
11
CVEs
CRITICAL
Peak severity
51.3%
Coverage
Highlights
Auth Bypass: 21 prior fixes. Scrutinize any change in this area.
server/api/v1/system/sys_user.go: most-fixed (6 issues). Treat as high-risk during review.
38 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: The application repeatedly suffered authentication bypasses in JWT and Casbin layers due to parsing issues, development-only bypass conditions, incorrect handling of API deletions, and GORM ORM query failures caused by passing model structs by value instead of pointer reference.
Path Traversal: Multiple entry points related to file uploads, chunked breakpoint uploads, and compression utilities allowed arbitrary file read, write, or deletion by traversing directory boundaries. This is corroborated by several high-severity published CVEs targeting the upload and download modules.
Privilege Escalation: The profile update and registration endpoints allowed low-privileged users to escalate privileges (e.g., modifying parent authorities or changing their own AuthorityId/Password) because incoming request payloads were bound directly without strict field-level filtering or clearing of sensitive fields.