Highlights
Auth Bypass: 13 prior fixes. Scrutinize any change in this area.
Controller: most-fixed (3 issues). Treat as high-risk during review.
11 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: A syntax error in the 'generates_token_for' block evaluation prevented password reset and email verification tokens from expiring on credential changes, allowing stale tokens to remain active.
Auth Bypass: The use of 'allow_blank: true' in password validations allowed users to register with empty or whitespace-only passwords. Changing this to 'allow_nil: true' enforces strong password checks.
Information Disclosure: Raw TOTP secret keys were leaked to the client side via HTML parameters inside hidden form fields instead of being kept secure on the database during registration.