A client could insert a card on a board it may write to while naming the
list and swimlane of another, private board. The card stayed on its own
board, but its creation activity carried that list's and swimlane's titles
and the board's rules saw them, so a member could read the names of
another board's lists by id. The server's own copies already check their
destination (server/lib/cardCopyDestination.js); DDP inserts now do too,
and refuse such a card. No client sends one, so the attempt is recorded in
Admin Panel / Problems under BoardBleed (canary card.foreign-placement).
Found while reviewing the client-side template copy writes, which go
through the same Cards insert rules: a template or linked card is always
created on the board that owns its list.
Tests: a server test that refuses another board's list and swimlane with
no card or activity written and allows the board's own, failing without
the rule; the canary catalogue and coverage suites; and the template,
linked-card, card-copy and card browser specs in Chromium.
Thanks to xet7 !
A copy of a card took every subtask of it. An assigned-only member who
copied a card assigned to them got copies of its subtasks assigned to
others, and any member got copies of its subtasks on boards they cannot
read - a parent may have subtasks on another board (#3626). Card.copy and
the durable rule copy now carry only the subtasks the copier could read and
copy themselves (models/lib/boardCardScope.js copyableSubtasks); a copy
with no acting user, made inside the server, keeps them all as before.
Not recorded in Admin Panel / Problems: copying a card with subtasks is
ordinary use, and the copy simply leaves out what the copier may not have.
Tests: tests/copySubtaskScope.test.cjs (the decision, and a scan that every
place copying subtasks filters them) and a server test through copyCard,
which without the fix gave an assigned-only member copies of another
member's subtask and of one on a private board.
Thanks to xet7 !