Project

General

Profile

Actions

Bug #14676

closed
RP RM

Authentication throttle time is based on time of previous login attempt

Bug #14676: Authentication throttle time is based on time of previous login attempt

Added by Raf Pauwels 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
07/16/2026
Due date:
% Done:

0%

Estimated time:

Description

When doing a second throttling authentication attempt immediately after a first one, the remaining throttling time of the first one is subtracted from the second.
E.g.: with the default throttling times of 1 and then 5 seconds, the second throttling attempt only delays for 4 instead of 5 seconds.

Cause: both PasswordService::verifyPassword() as TotpProcess::verifyCode() first call AuthThrottle::delayForNextAttempt(), which compares with User::lastLoginAttempt(). This is set in User.setAuthenticated(), which is only called after calculating the delay.

RP Updated by Raf Pauwels 4 months ago Actions #1

  • Subject changed from MFA throttle time is based on time of previous login attempt to Authentication throttle time is based on time of previous login attempt

RM Updated by Romain Mardulyn 4 months ago Actions #2

  • Private changed from No to Yes

RM Updated by Romain Mardulyn 4 months ago Actions #3

  • Assignee set to Romain Mardulyn
  • Target version set to 4.14.1

RM Updated by Romain Mardulyn 4 months ago ยท Edited Actions #4

I do see a bug with TOTP throttling but not for passwords throttling.

For TOTP throttling, the biggest bug is actually that submitting a code while prevented to by throttling is counted as a attempt, therefor increasing the amount of time to wait before being able to make another attempt. This must be quite frustrating for users.

For the rest, it was only impacting the visual part. It was not really allowing a user to bypass the throttling.

RM Updated by Romain Mardulyn 4 months ago Actions #5

  • Status changed from New to InProgress

RM Updated by Romain Mardulyn 4 months ago Actions #6

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

ED Updated by emil de keyser 4 months ago Actions #7

  • Assignee set to emil de keyser

ED Updated by emil de keyser 3 months ago Actions #8

  • Status changed from Review to Resolved
  • Assignee changed from emil de keyser to Romain Mardulyn

RM Updated by Romain Mardulyn 3 months ago Actions #9

  • Status changed from Resolved to Implemented @Emweb
  • Private changed from Yes to No

RM Updated by Romain Mardulyn 3 months ago Actions #10

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom