3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-03-11 17:00:46 +01:00
Shivaram Lingamneni 218f6f2454 fix login throttle handling
We were checking the login throttle at the beginning of every SASL
conversation. This had several problems:

1. Pidgin (on Windows?) tries every mechanism in order, regardless of
the CAP advertisement. It would use up the default throttle allowance
trying unsupported mechanisms like CRAM-MD5.
2. The throttle was actually checked twice for AUTHENTICATE PLAIN
(once at the start of the conversation and once in AuthenticateByPassphrase).

The general pattern here is that we should check the throttle every time we
do something "expensive" (bcrypt verification, send a reset email) or
"dangerous" (anything that could lead to a bruteforce attack on passwords).
Therefore, delete the check from the AUTHENTICATE handler, and add one at
the beginning of the SCRAM conversation to replace it.
2024-05-26 05:19:41 -04:00
..
2021-05-27 02:00:59 -04:00
2024-04-07 15:47:01 -04:00
2021-11-30 03:27:40 -05:00
2023-08-15 20:45:00 -04:00
2024-02-13 21:32:37 -05:00
2021-02-17 15:14:53 -05:00
2020-03-22 18:18:48 -04:00
2023-08-15 20:45:00 -04:00
2024-04-07 15:47:01 -04:00
2023-08-15 20:57:52 -04:00
2022-05-05 22:34:43 -04:00
2024-04-13 21:51:59 -04:00
2023-08-15 20:55:09 -04:00
2024-03-11 01:32:39 -04:00
2024-02-25 10:05:36 -05:00
2024-02-25 10:05:36 -05:00
2020-05-21 11:42:17 -04:00
2024-03-29 12:32:42 -04:00
2023-08-15 20:57:52 -04:00
2024-05-06 02:32:40 -04:00
2024-05-26 05:19:41 -04:00
2023-01-05 20:18:14 -05:00
2023-06-02 02:58:09 -04:00
2022-05-05 22:34:43 -04:00
2022-05-05 22:34:43 -04:00
2022-03-30 00:44:51 -04:00
2023-12-21 01:10:50 -05:00
2021-09-18 21:28:16 -04:00
2023-06-01 06:29:22 -04:00
2020-09-14 04:28:12 -04:00
2022-12-02 07:23:29 -05:00
2021-11-30 03:40:03 -05:00
2020-10-21 11:08:55 -04:00
2024-02-11 00:12:22 -05:00
2019-03-12 04:16:16 -04:00
2019-03-12 04:16:16 -04:00
2022-03-30 00:44:51 -04:00