Forgot Password API Receiving Excessive Requests Despite Brute-Force Protection Enabled

Hello Support Team,

We are facing an issue with the Auth0 Forgot Password API being abused through what appears to be a brute-force style attack.

Currently, the API is receiving nearly 1000 requests from the same IP, which results in thousands of password reset emails being triggered. This is causing email flooding and a poor user experience.

We have already enabled Brute-Force Protection in the Auth0 Dashboard with the default configuration. However, the protection does not seem to be limiting or blocking these repeated requests as expected.

Our requirement:

We want to restrict the Forgot Password API to:

  • A maximum of 3 requests per IP address within a defined time window.

  • Automatically block or throttle further requests from the same IP.

Questions:

  1. Why is Brute-Force Protection not restricting Forgot Password API calls in this scenario?

  2. Is there a specific setting or rule required to enforce IP-based rate limiting for the Forgot Password endpoint?

  3. What is the recommended Auth0 best practice to prevent mass password reset email abuse?

Please let us know the correct configuration or any additional security controls we should apply at the Auth0 level to resolve this issue.

We appreciate your support in helping us secure this endpoint.

Hello @dev.nareshch,

Welcome back to the Auth0 Community!

I understand you are asking why Brute-Force Protection does not limit Forgot Password requests when one IP address sends about 1,000 requests across many email addresses, and how to cap that endpoint at 3 requests per IP with automatic blocking.

Root Cause

Brute-Force Protection is designed to act on repeated failed authentication attempts against specific user accounts. A single IP that spreads requests across thousands of different email addresses never triggers it. Auth0 does not offer a custom “3 requests per IP” rule for the Forgot Password endpoint.

Official Solution and overview

1. Why Brute-Force Protection is Not Restricting These Calls

Auth0’s Brute-Force Protection and the Forgot Password API serve fundamentally different functions:

  • Brute-Force Protection monitors failed authentication attempts:
    Brute-Force Protection (and Suspicious IP Throttling) is designed to mitigate credential-guessing and credential-stuffing attacks during login. It increments its counters only when it receives consecutive failed login events (such as incorrect password or invalid user errors: log codes f, fp, fu).

  • Forgot Password calls return HTTP 200 (Success):
    When an attacker calls the password reset endpoint (POST /dbconnections/change_password), Auth0 returns a 200 OK response regardless of whether the email exists in the database (to avoid user enumeration). Because these are treated as successful requests rather than failed logins, Brute-Force Protection never triggers.

  • Why the built-in endpoint rate limit did not stop them:
    Auth0’s default rate limit on /dbconnections/change_password is enforced per (User Email, IP Address) pair (typically 1 request per minute per email with burst allowance). If an attacker is spraying a large dictionary of different emails from that same IP, requests to distinct email addresses are evaluated individually and do not immediately exhaust the per-email quota.

2. Can You Enforce Custom IP-Based Limits (e.g., 3 Requests/IP) in Auth0?

  • Native Auth0 Dashboard / Settings:
    No. Auth0 does not provide a custom rate-limiting slider or policy engine in the Dashboard to set arbitrary IP thresholds (like 3 requests per IP per time window) for public Authentication API endpoints.

  • Auth0 Actions / Rules:
    Cannot be used here. Auth0 Actions and Rules execute during login/registration triggers (e.g., Post-Login, Pre-User-Registration). There is no Action trigger for password reset requests (/dbconnections/change_password), so custom code within Auth0 cannot intercept or throttle this endpoint.

  • Where to enforce an exact “3 requests per IP” threshold:
    Enforcing custom, low-volume IP thresholds must be implemented at your network edge or reverse proxy/WAF (such as Cloudflare, AWS WAF, or an upstream API gateway) in front of your domain.

3. Recommended Best Practices to Prevent Password Reset Abuse

To stop email bombing and password reset abuse, apply the following multi-layered controls:

A. Enable Bot Detection for the Password Reset Flow

The most effective native Auth0 defense against scripted abuse of this flow is Bot Detection:

  1. In the Auth0 Dashboard, go to Security > Attack Protection > Bot Detection.

  2. Under flow protections, enable Enforce CAPTCHA for the password reset flow.

  3. Select When Risky (or Always during an active incident), using Auth0 Auth Challenge or Google reCAPTCHA.

  4. When enabled, requests from suspicious IPs or repeated automated scripts are challenged with CAPTCHA before any email is dispatched.

Note on Client Type: Bot Detection for password reset requires using Universal Login (New Universal Login or supported Lock versions). If you are currently exposing a direct, unauthenticated client-side AJAX call to /dbconnections/change_password from a custom webpage, scripts can bypass browser checks. Migrating the password recovery flow to Universal Login ensures Bot Detection and telemetry are enforced.

B. Implement Edge Rate Limiting / WAF Rules

If you are using a Custom Domain or your application backend proxies the request:

  • Cloudflare / AWS WAF Rate Limiting: Create a rate-limiting rule matching the path /dbconnections/change_password (or your application’s forgot-password endpoint) to block or issue a managed challenge to any IP exceeding 3 requests within 5–15 minutes.

  • Immediate IP Block: In your WAF / Edge firewall, add an immediate temporary block or challenge for the specific IP address generating the 1,000 requests.

C. Backend-Mediated Password Resets (If Using a Custom Form)

If your architecture requires hosting a custom UI rather than Universal Login:

  1. Do not allow your public frontend to call Auth0’s /dbconnections/change_password endpoint directly.

  2. Route the request through your own backend API.

  3. In your backend API, track requests by client IP in a Redis cache (e.g., sliding window of 3 requests per 10 minutes).

  4. When calling Auth0 from the server side, ensure you configure client authentication (Regular Web App) and pass the Auth0-Forwarded-For: <END_USER_IP> header so that Auth0 can still detect anomalies accurately.

I hope this helps, and if you have further questions please let me know!
Best reagards,
Remus