Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security] Add per-username login rate-limit to prevent brute-force attacks#64104

Merged
nicolas-grekas merged 1 commit into
symfony:8.1from
ayyoub-afwallah:feature/add-username-login-rate-limiter
May 4, 2026
Merged

[Security] Add per-username login rate-limit to prevent brute-force attacks#64104
nicolas-grekas merged 1 commit into
symfony:8.1from
ayyoub-afwallah:feature/add-username-login-rate-limiter

Conversation

@ayyoub-afwallah
Copy link
Copy Markdown
Contributor

Q A
Branch? 8.1
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #61932
License MIT

Adds a third rate-limiter to DefaultLoginRateLimiter as suggested in #63997 (comment)

@ayyoub-afwallah
Copy link
Copy Markdown
Contributor Author

Test failures seem unrelated to this pr

Comment thread src/Symfony/Component/Security/Http/RateLimiter/DefaultLoginRateLimiter.php Outdated
@nicolas-grekas nicolas-grekas force-pushed the feature/add-username-login-rate-limiter branch from b4a3196 to a84ec30 Compare May 4, 2026 15:40
@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @ayyoub-afwallah.

@nicolas-grekas nicolas-grekas merged commit 692ecef into symfony:8.1 May 4, 2026
5 of 12 checks passed
nicolas-grekas pushed a commit that referenced this pull request May 4, 2026
…o prevent brute-force attacks (ayyoub-afwallah)"

This reverts commit 692ecef, reversing
changes made to 965b0fc.
nicolas-grekas added a commit that referenced this pull request May 4, 2026
…o prevent brute-force attacks" (wouterj)

This PR was merged into the 8.1 branch.

Discussion
----------

[Security] Revert "Add per-username login rate-limit to prevent brute-force attacks"

| Q             | A
| ------------- | ---
| Branch?       | 8.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | Reverts #64104
| License       | MIT

Read #61932 (comment) for the reasoning.

Commits
-------

ef7291c Revert "feature #64104 [Security] Add per-username login rate-limit to prevent brute-force attacks (ayyoub-afwallah)"
@wouterj
Copy link
Copy Markdown
Member

wouterj commented May 4, 2026

Hi! Unfortunately, we've discovered that implementing this feature can result in denial of service. A botnet can keep trying a specific username with different IPs, resulting in a user not being able to log in anymore. As a result, we have to revert this feature from the upcoming 8.1 release (ref #64118).

I hope this won't discourage you from coming back with more contributions in the future. The contribution itself went very smooth 🚀

@fabpot fabpot mentioned this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RateLimiter] The local DefaultLoginRateLimiter should probably limit only by username

4 participants