Highlights
Auth Bypass: 40 prior fixes. Scrutinize any change in this area.
website/server/controllers/api-v3/auth.js: most-fixed (8 issues). Treat as high-risk during review.
36 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 failed to properly validate external OAuth access tokens or verify username uniqueness during social logins, permitting arbitrary authentication and session hijacking. Secure validation against external APIs must always gate social authentication profiles.
Auth Bypass: Bypasses occurred due to improper invocation of authentication middleware functions and missing validation checks when MongoDB database projections excluded the API token. Strict promise error handling and explicit token checks are required.
Open Redirect: Insufficient sanitization of redirect parameters allowed attackers to redirect users to malicious domains. Relies on sanitization of dots, backslashes, double slashes, and DOMPurify validation on login flows.