mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
The Checklists and ChecklistItems collection allow rules authorize an update only against the document's CURRENT (source) cardId. A DDP client with write access to its own board could move a checklist/item it owns onto a card in a private board it is not a member of by $set-ting a new cardId (and, for items, checklistId); the before.update hook then denormalizes boardId from the destination card, attaching the attacker-controlled document to the victim's private board. Same class as denyCrossBoardMove / BoardBleed (GHSA-gm7v-pc38-53jr), but for the card-attached checklist documents that the boardId-only deny did not cover. Add denyCrossBoardMoveByCard and denyCrossBoardMoveByChecklistItem in server/lib/utils.js, which reject any update whose destination board (resolved from a new boardId, cardId, or checklistId in the modifier) the caller cannot write to, and wire them into Checklists.deny / ChecklistItems.deny. Legitimate moves into writable boards and same-card edits are unaffected; the server-side moveChecklist Meteor method bypasses allow/deny and is unchanged. Adds a regression test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>