---
author: Jan Brennenstuhl
canonical_url: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/
description: Where email-based password reset flows go wrong, measured across 366 websites, and the controls that close each gap.
id: jb-research-account-recovery
kind: guide
license:
  name: CC BY 4.0
  scope: Original text; credited third-party media retain their own rights.
  url: https://creativecommons.org/licenses/by/4.0/
markdown_url: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/index.md
modified: '2026-10-13T00:00:00+02:00'
published: '2023-04-21T00:00:00+02:00'
review_basis: ''
review_status: not-reviewed
reviewed: ''
series: ''
status: published
title: How secure are email-based password resets?
topics:
- identity-authentication
---

# How secure are email-based password resets?

**Short answer:** In a 2021 study of 366 websites from the Alexa Top 5K, 72% of account recovery mechanisms had at least one implementation weakness. Common gaps were multiple valid reset tokens, missing change notifications and long-lived reset links.


<a id="key-findings"></a>
## Key findings


<a id="f-recovery-72pct-weakness"></a>
> **Finding f-recovery-72pct-weakness:** In a study of 366 popular websites, 72% of account recovery mechanisms had at least one implementation weakness.
>
> Source: [Innocenti et al., You've Got (a Reset) Mail (DIMVA 2021)](https://kharraz.org/publications/dimva2021youvegotmail.pdf)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/#f-recovery-72pct-weakness



<a id="f-recovery-40pct-multiple-tokens"></a>
> **Finding f-recovery-40pct-multiple-tokens:** 40% of the websites studied generated multiple valid password reset tokens at the same time.
>
> Source: [Innocenti et al., You've Got (a Reset) Mail (DIMVA 2021)](https://kharraz.org/publications/dimva2021youvegotmail.pdf)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/#f-recovery-40pct-multiple-tokens



<a id="f-recovery-45pct-no-notification"></a>
> **Finding f-recovery-45pct-no-notification:** 45% of the websites studied did not notify the account owner after a password change, so an unauthorised reset went unnoticed.
>
> Source: [Innocenti et al., You've Got (a Reset) Mail (DIMVA 2021)](https://kharraz.org/publications/dimva2021youvegotmail.pdf)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/#f-recovery-45pct-no-notification



<a id="f-recovery-13pct-owasp"></a>
> **Finding f-recovery-13pct-owasp:** Only 13% of the websites studied followed the OWASP guidelines for password reset.
>
> Source: [Innocenti et al., You've Got (a Reset) Mail (DIMVA 2021)](https://kharraz.org/publications/dimva2021youvegotmail.pdf)
> Link: https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/#f-recovery-13pct-owasp


<a id="evidence"></a>
## Evidence


**Account recovery studies**

| Study | Year | Sample | Method | Finding |
| --- | --- | --- | --- | --- |
| [You've Got (a Reset) Mail: A Security Analysis of Email-Based Password Reset Procedures](https://kharraz.org/publications/dimva2021youvegotmail.pdf) (Northeastern University, University of Trento, KU Leuven, Florida International University) | 2021 | 366 websites from the Alexa Top 5K | Manual registration and semi-automated checks against 8 OWASP-based controls | 72% had at least one weakness; only 13% followed the OWASP guidelines. |


<a id="what-to-do"></a>
## What to do

<a id="for-engineers"></a>
### For engineers

The weaknesses Innocenti et al. measured map to concrete controls:

- Keep one valid reset token per account. Invalidate older tokens when a user requests a new one, and accept each token only once.
- Give reset links a short expiry. The study counted any link still valid after 24 hours as a weakness, and found that in 75 websites.
- Send reset links over HTTPS only. 52 websites sent tokens in insecure links.
- End existing sessions after a reset. 38% of the websites kept them alive.
- Protect the flow against login CSRF and header manipulation. Build reset links from configuration, not from the request's host header.

Treat recovery as a high-risk action that deserves the same scrutiny as login. [Step-up authentication](https://www.janbrennenstuhl.eu/step-up-authentication/) shows how to require more proof for sensitive actions.

<a id="for-product-and-ux"></a>
### For product and UX

- Notify the account owner after every password change, and include a way to report "this wasn't me".
- Keep the reset email plain and predictable, so users can spot a fake one.
- Recovery is also an account takeover path. The [account hijacking entry](https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/) covers attacks that start before sign-up.

<a id="the-studies-in-detail"></a>
## The studies in detail

<a id="security-analysis-of-email-based-password-reset-procedures"></a>
### Security Analysis of Email-Based Password Reset Procedures

An international group of researchers from the USA, Italy and Belgium analyzed the email-based account recovery mechanisms of websites in the Alexa Top 5K. They manually registered accounts and triggered password recovery on sites from 3 popularity groups, ending up with 366 websites. They checked each site against 8 implementation controls derived from the OWASP guidelines.

The paper describes a heterogeneous reality. 72% of the websites had at least one weakness, and only 13% followed the OWASP guidelines. 40% generated multiple valid tokens, 45% sent no notification after a password change, and 22% were vulnerable to login CSRF. The authors also outline concrete password-recovery attacks that can lead to account takeover.

"We hope that this paper will pave the way in highlighting the importance of improving the email-based account recovery mechanisms in real-world websites."

[Read the paper (PDF)](https://kharraz.org/publications/dimva2021youvegotmail.pdf)

<a id="related"></a>
## Related

- [How do attackers take over accounts?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-takeover/)
- [Do login challenges and risk scoring stop account takeover?](https://www.janbrennenstuhl.eu/knowledge-base/account-security/reinforced-authentication/)


---

Cite as: Jan Brennenstuhl. "How secure are email-based password resets?" Brennenstuhl on Security, 21 April 2023. https://www.janbrennenstuhl.eu/knowledge-base/account-security/account-recovery/
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) for the original text; credited third-party media keep their own rights.
