Commit 8dea347
authored
add brute-force protection for one-time password (rustdesk#14682)
* add brute-force protection for temporary password
Rotate the temporary password after repeated failed login attempts
within one minute, and reset the failure window after successful
authentication.
Signed-off-by: 21pages <sunboeasy@gmail.com>
* replace LazyLock with lazy_static
Signed-off-by: 21pages <sunboeasy@gmail.com>
* read temporary password after locking failure state
Signed-off-by: 21pages <sunboeasy@gmail.com>
* server: rotate temporary passwords after 10 consecutive failures
Signed-off-by: 21pages <sunboeasy@gmail.com>
* server: clarify temporary password failure counter comment
Signed-off-by: 21pages <sunboeasy@gmail.com>
---------
Signed-off-by: 21pages <sunboeasy@gmail.com>1 parent 0cf3e8e commit 8dea347
1 file changed
+55
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1993 | 1993 | | |
1994 | 1994 | | |
1995 | 1995 | | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
1999 | | - | |
2000 | | - | |
2001 | 1996 | | |
2002 | 1997 | | |
2003 | 1998 | | |
| |||
2025 | 2020 | | |
2026 | 2021 | | |
2027 | 2022 | | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
2028 | 2075 | | |
2029 | 2076 | | |
2030 | 2077 | | |
2031 | | - | |
| 2078 | + | |
2032 | 2079 | | |
2033 | 2080 | | |
2034 | 2081 | | |
2035 | 2082 | | |
2036 | 2083 | | |
| 2084 | + | |
2037 | 2085 | | |
2038 | 2086 | | |
2039 | 2087 | | |
| |||
2406 | 2454 | | |
2407 | 2455 | | |
2408 | 2456 | | |
| 2457 | + | |
2409 | 2458 | | |
2410 | 2459 | | |
2411 | 2460 | | |
| |||
0 commit comments