# Password reset endpoint leaks account existence via timing side-channel

**URL:** <https://community.auth0.com/t/password-reset-endpoint-leaks-account-existence-via-timing-side-channel/202325>\
**Category:** Get Help\
**Tags:** password-reset\
**Created:** [August 6, 2026, 6:01pm UTC](https://community.auth0.com/t/password-reset-endpoint-leaks-account-existence-via-timing-side-channel/202325 "2026-08-06T18:01:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![platbaseddeveloper](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/platbaseddeveloper/32/80309_2.png) [@platbaseddeveloper](https://community.auth0.com/u/platbaseddeveloper)\
**Post date:** [August 6, 2026, 6:01pm UTC](https://community.auth0.com/t/password-reset-endpoint-leaks-account-existence-via-timing-side-channel/202325/1 "2026-08-06T18:01:19Z")

</div>

Hi,

A recent penetration test against our tenant flagged a timing-based user enumeration issue on:

- `POST /dbconnections/change_password`
- `POST /u/reset-password/request/Username-Password-Authentication`

**Finding:** Both valid and invalid email addresses return HTTP 200 with the same generic “Check Your Email” page and message, so there’s no content-based leak. However, response times differ consistently and measurably:

- Valid, existing email: ~130–260ms

- Non-existent email: ~260–370ms

**Questions:**

1. Is this a known issue with these endpoints? Is equalized/constant-time response handling on Auth0’s roadmap here?
2. Is there any tenant-side configuration (Actions, custom domain settings, etc.) that can influence response timing before the initial reset-request response is sent, given that the Post Challenge Action trigger only fires after the email challenge is completed?

Any guidance — official or from others who’ve hit this in a pentest — would be appreciated. Happy to open a support ticket too if this needs to go through Auth0 security directly.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [August 6, 2026, 11:22pm UTC](https://community.auth0.com/t/password-reset-endpoint-leaks-account-existence-via-timing-side-channel/202325/3 "2026-08-06T23:22:40Z")

</div>

Hi @platbaseddeveloper

Welcome to the Auth0 Community!

1. **Yes, this is a known behavioral side-channel pattern across standard identity providers, including Auth0**.  
The timing discrepancy you observed originates from the differing code paths executed by the Auth0 authentication server depending on user existence:

- **The “Fast” Path (User exists ~130–260ms):** When the database lookup is successful, Auth0 generates an ephemeral password-reset ticket and passes the task off to an **asynchronous email-sending queue** before immediately returning an HTTP `200` to the client.

- **The “Slow” Path (User does not exist ~260–370ms):** When the user does not exist, Auth0 does not spin up a ticket-generation or queuing process. However, to mitigate brute-force indexing and generic credential-stuffing attacks, the backend intentionally routes through safety evaluation checks (such as more extensive Attack Protection checks, IP reputation tracking, and simulated hashing paths) to obscure the user’s absence . This additional security overhead can end up taking longer than the optimized queuing path for active users, resulting in the timing delta. This is also mentioned in the [User Enumeration via Password Reset Timing Attack](https://github.com/directus/directus/security/advisories/GHSA-jr94-gj3h-c8rf).

1. Because both endpoints run entirely at the platform level **before** any Action flows (like _Post-Login_ or _Pre-User Registration_) or custom extensibility scripts can be interceptively executed, **there is no tenant-side config, custom domain proxy setting, or Auth0 Action that can equalize the response latency of these endpoints**.

However, you can mitigate and address this pentest finding through several industry-standard practices:

#### **A. Decouple via a Proxy Endpoint (Architectural Solution)**

If your auditors strictly require a zero-leak timing guarantee, the recommended approach is to route password reset requests through your own backend gateway rather than exposing the `/dbconnections/change_password` endpoint directly to the public web:

1. **Expose a custom proxy endpoint** on your backend (e.g., `POST /api/auth/request-reset`).

2. Have your backend immediately return a generic `200 OK` (e.g., in `< 50ms`) to the frontend.

3. Decouple the request execution completely by sending the payload to an **asynchronous background queue** on your backend.

4. The background queue can then call the Auth0 Management API (`POST /api/v2/tickets/password-change`) using an administrative M2M token, or forward the request to the Authentication API. Because your backend is the one communicating with Auth0, the end-user only ever sees the near-instantaneous static response time of your gateway .

#### **B. Implement Rate Limiting and WAF Rules at the Edge**

Timing attacks are only structurally viable if the attacker can issue thousands of requests to map statistical distribution trends.

- Ensure **Bot Detection** is set to **High** inside your Auth0 Dashboard ( **Security \> Attack Protection** ) to trigger immediate CAPTCHA challenges on suspicious, automated `/reset` patterns as mentioned in the [Signup Attack Playbook](https://auth0.com/docs/secure/attack-protection/playbooks/signup-attack-playbook)\*

- Implement strict rate limits at your edge proxy or Web Application Firewall (WAF) (such as Cloudflare, AWS WAF, or Akamai) targeting `/dbconnections/change_password` and `/u/reset-password`. Limiting client IPs to a maximum of 3–5 reset requests per 15 minutes effectively ruins the statistical modeling required to run a timing side-channel attack.

#### **C. Official Pentest Exception Wording**

If you choose to accept the risk rather than wrapping the endpoint in a proxy (Method A), most security compliance bodies (such as SOC2, ISO27001, and PCI-DSS) accept a **Risk Acceptance Exception** for timing-based user enumeration on public login endpoints when backed by the following mitigating controls:

1. Standard content-based leaks are completely plugged (generic messages are used).

2. Passive rate limiting, Bot Detection, and Suspicious IP Throttling are fully enabled to restrict mass-indexing attempts.

3. Multi-Factor Authentication (MFA) or Passkeys are enforced on your user accounts, neutralizing the downstream threat of a leaked email directory

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 8, 2026, 11:23pm UTC](https://community.auth0.com/t/password-reset-endpoint-leaks-account-existence-via-timing-side-channel/202325/4 "2026-08-08T23:23:00Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
