Commit a6a89f2
committed
Fix MFA lockout bypass via session user id mismatch
The lockout check only applied when the session's tracked
mfa_fail_user_id matched the user currently logging in, so an
attacker could clear another account's active lockout early simply
by logging in as a different user first. Enforce the lockout
regardless of which user triggered it.1 parent dc20015 commit a6a89f2
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
0 commit comments