copyBoard assigned every caller-supplied property onto the source board
object, including _id. board.copy() loads the source lists, cards and
children by this._id, so an admin of any board could pass a private
board's _id and receive a full copy of a board they cannot see - the
board-level form of CopyIdentityBleed. Only title, sort, type,
withoutCards and copyOptions are accepted now, each type-checked, and they
are applied to a separate object, so the cached source board is never
changed. Any other field is refused before anything is read and recorded
as CopyIdentityBleed in Admin Panel -> Problems; a wrong type on a
supported field is an ordinary input error without an attack record. The
REST copy route takes only a string title, on a separate object.
A unit test covers the contract, and a source scan fails if caller input is
assigned onto the source board or the source board object is copied again.
The browser spec reproduces the disclosure and checks the refusal, the
Problems record, that malformed input blocks nobody, and that supported
copies still work.
Thanks to xet7 !