Engineering / ENG-1481
Recovery codes can be used twice
Description
Found testing on staging.
Steps to reproduce
- Set up MFA, keep the recovery codes.
- Sign in with recovery code #1. Sign out.
- Sign in with recovery code #1 again.
Expected: refused. Actual: signed in.
The code is marked used in a job after the session starts. Mark it used in the same transaction that checks it.
Comments (0)
No comments.