You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-01 00:44:57 +02:00
Merge #2732
2732: Only account for distinct attempts in rate limits r=mergify[bot] a=nextgens ## What type of PR? enhancement ## What does this PR do? Only account for distinct attempts in rate limits. This is solving the problem related to users changing their passwords and having their client hammer the old credentials. Reduce the default to 50 distinct passwords per day ### Related issue(s) ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org> Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
This commit is contained in:
@ -47,10 +47,11 @@ accounts for a specific IP subnet as defined in
|
||||
``AUTH_RATELIMIT_IP_V4_MASK`` (default: /24) and
|
||||
``AUTH_RATELIMIT_IP_V6_MASK`` (default: /48).
|
||||
|
||||
The ``AUTH_RATELIMIT_USER`` (default: 100/day) holds a security setting for fighting
|
||||
The ``AUTH_RATELIMIT_USER`` (default: 50/day) holds a security setting for fighting
|
||||
attackers that attempt to guess a user's password (typically using a password
|
||||
bruteforce attack). The value defines the limit of authentication attempts allowed
|
||||
for any given account within a specific timeframe.
|
||||
bruteforce attack). The value defines the limit of distinct authentication attempts
|
||||
allowed for any given account within a specific timeframe. Multiple attempts for the
|
||||
same account with the same password only counts for one.
|
||||
|
||||
The ``AUTH_RATELIMIT_EXEMPTION_LENGTH`` (default: 86400) is the number of seconds
|
||||
after a successful login for which a specific IP address is exempted from rate limits.
|
||||
|
Reference in New Issue
Block a user