mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
secureTransfer recorded every throw as a high "blocked" event naming the user, and that disables the account. sanitize-html 2.18.0 threw RangeError on nested <iframe>, so a card planted with the payload locked out the next member who exported the board; any library fault would do the same. The transfer boundary now marks its own refusals (TransferBoundaryError: a cycle, a non-plain object, a size limit), and models/lib/transferFailure.cjs records only those as blocked - high, and medium for a size limit as before. Anything else is ImportExportFailure: detected, still naming whose import or export it was, and never blocking an account. tests/transferFailure.test.cjs drives real boundary refusals and a sanitizer that throws through blockOnSecurityEvent's own decision; with the old secureTransfer it fails. It also fails if the boundary throws a plain Error or anything but secureTransfer calls it. Thanks to xet7 !