Security context

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

zhimaai/chatwiki
main @ f63e4aa
4
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
front-end/chat-ai-admin-vue: most-fixed (1 issue). Treat as high-risk during review.
2 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: Flawed privilege mapping logic for super administrators allowed authorization bypass. This required implementing GetAdminPermissionData fallback checks to ensure administrative permissions are securely evaluated.
Auth Bypass: The lack of proper authorization checks on the robot_key parameter permitted unauthorized API key generation, list retrieval, and modifications, ultimately requiring the removal of the vulnerable endpoints.
Auth Bypass: Sub-accounts with administrative access could escalate privileges by editing their own roles. Explicit self-permission modification restrictions were required to neutralize this exploit path.