Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 9d323f2aaf Stop disabling legitimate users: Problems records only attempts, or never block, where ordinary use reaches them.
A blocked record of high or critical severity that names a userId disables
that account. Records on paths ordinary users reach therefore took accounts
away from legitimate users:
- authz.card-member, when a client wrote back assignees still listing a removed
  member - now recorded only for ids that were never on the board;
- History restore after the user was demoted - no longer recorded, as the
  HistoryScopeBleed deliberate omission already says;
- export by an assigned-only member, who reaches the export menus - recorded
  only when the caller cannot see the board;
- a large legitimate import hitting a size limit - recorded at medium (cycles
  and non-plain objects stay high), and the record can no longer throw;
- ssrf.attachment (a Trello board's link to an internal host), ssrf.redirect (an
  identity provider's avatar) and authz.upload-path (a cached older client) -
  still recorded, but blocksAccount: false;
- a REST client writing back a card with the parent it already had - only a
  changed parent is checked. That PUT now also answers 404 for a card that is
  not on the named board and list instead of acting on the id alone.

tests/problemsFalseBlocks.test.cjs drives the blocking decision and the real
assignee filter, and pins each condition; four tests that pinned the old calls
follow them. MegaBleed moves to guarded (its Translation sibling test).

Thanks to xet7 !
2026-10-02 10:44:08 +03:00