Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
src/controllers/apps/auth/user.controllers.js: most-fixed (5 issues). Treat as high-risk during review.
7 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 historically suffered from authentication bypasses where refresh tokens were not properly nullified on logout because Mongoose ignores keys set to 'undefined' in updates, and refresh tokens were not verified against database records.
Denial of Service: Unhandled exceptions during jwt.verify execution could crash the server process because the token validation logic was executed outside of safety try-catch wrappers.
Auth Bypass: Lack of ownership validation on checkout operations allowed users to generate orders referencing address IDs belonging to other registered users.