mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
The lockout reporter recorded brute.lockout (high, blocked) with the GUESSED account as its userId, and a high-severity blocked event with a userId disables that account. So three wrong passwords from anyone who knew a username disabled its owner until an admin re-enabled it - worse than the per-user lock GHSA-rf3w-rj48-jxcc removed - and a user who mistyped their own password three times was disabled the same way. The reporter is now one module for startup and reload and names the account as targetUserId; a catalog key can declare blocksAccount: false, and brute.lockout does. An account already disabled keeps the reason it was disabled for instead of later events overwriting it. tests/jamBleedVictimBlock.test.cjs drives the real blocking decision with the real catalog; its negative test fails if a lockout is recorded anywhere else or a login target is recorded as an actor. Thanks to xet7 !