---
title: Password-reset codes are a login: cap attempts, expire them fast, and alert on bursts of failed resets followed by a password change and new login | ctxsec
url: https://ctxsec.com/items/tip-rate-limit-password-reset-codes-alert-on-reset-bursts-dooray
description: "Dooray's attacker got in by entering password-reset verification codes over and over until one worked. If your app or IdP sends numeric reset codes, treat that flow like a login page."
status: "official (lesson from NHN Dooray's Nov 14, 2026 breach notice); recommendations are ours"
published: 2026-11-15
---

> Dooray's attacker got in by entering password-reset verification codes over and over until one worked. If your app or IdP sends numeric reset codes, treat that flow like a login page.

[← Tips & Guides](/tips) · [markdown](/items/tip-rate-limit-password-reset-codes-alert-on-reset-bursts-dooray.md)

official (lesson from NHN Dooray's Nov 14, 2026 breach notice); recommendations are ours

2026-11-15 7:38 AM ET

### Password-reset codes are a login: cap attempts, expire them fast, and alert on bursts of failed resets followed by a password change and new login

- **Limit:** a handful of wrong codes per request, per account and per source IP, then invalidate the code; short expiry; codes long enough to make guessing hopeless.
- **Detect:** many failed reset-code checks for one account (or one IP across many accounts), then a successful reset, a password change and a login from a new IP or device within minutes.
- **Contain:** a password reset should kill existing sessions and notify the user by a second channel; require MFA after a reset, not just before it.
- **API keys:** scope them, keep an inventory of what uses each, and make sure you can revoke all of them at once, as Dooray had to.

Sources: [Dooray notice (Nov 14, 2026)](https://doorayhelp.oc.nhncloud.com/dooray/hc/notice/139/?lang=ko) · [OWASP Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)
