OTP platform design 1 question in 2 chapters

  1. 01Challenge lifecycle and abuse resistance
  2. 02Sources

Challenge lifecycle and abuse resistance

  • 1.1 How would you design a secure OTP platform? Hard 5 min

    I first separate delivered verification codes from authenticator-generated time-based passwords. For a delivered code, I create a short-lived challenge bound to a user, purpose and login attempt. Verification atomically checks expiry, counts failed attempts and consumes a match once. I rate-limit both sending and guessing across instances, protect the code in storage and logs, and handle delayed delivery and retries without issuing extra valid challenges.

    Read the full answer

Sources