Commit Graph
5 Commits
Author SHA1 Message Date
Lauri Ojansivu 73df81bc6c Load every exported function of linkedCardPermission.js in its VM test.
The LinkedWriteBleed test ran the module in a VM after removing only the
first `export`; the second exported function, editableCardIds, left an
`export` in place and the test failed to parse the file. It now removes
them all, and asserts what it did before.

Thanks to xet7 !
2026-10-03 01:47:24 +03:00
Lauri Ojansivu 3da444db74 Close the LinkedWriteBleed REST sibling: linked cards over REST follow the Link popup's rule.
POST /api/boards/:boardId/lists/:listId/cards with linkedId checked only READ
access to the source card's board and cloned the whole source card with
Card.link(), so a read-only, read-assigned-only or comment-assigned-only member
could link and copy cards - including unassigned ones and their descriptions -
into a board they control, which the createLinkedCard method refuses.

Both now call one createLinkedCardFor(): write access to the source board, an
assigned-only member links only cards assigned to them (a check the method
lacked as well), the list and swimlane must belong to the destination board,
and the link holds the title, not a copy. Refusals record LinkedWriteBleed with
source rest:card-link. The tests that pinned the method's body follow the
shared function; the negative test fails if the REST branch checks only read
access or clones the card again. A browser test covers the REST roles.

Thanks to xet7 !
2026-10-02 10:26:57 +03:00
Lauri Ojansivu c35e84c1f5 Avoid logging Scrum read capabilities as denied writes
Keep mutation denial logging enabled while allowing read-only Scrum capability checks without false account blocking. Cover all board roles and repeated browser reads.

Thanks to xet7 !
2026-09-27 18:51:03 +03:00
Lauri Ojansivu c4c6e34ec4 Repair node regressions and align security problem names 2026-09-15 10:35:31 +03:00
Lauri Ojansivu 26e9e70304 Prevent linked cards from promoting non-writing source roles
Require source write access for authoritative and DDP link creation, including pointer changes. Treat explicit non-writing source roles as a ceiling on delegated writes, covering legacy self-created links. Match UI permissions and remove the link action from the non-writer menu. Record denied writes in bounded Problems summaries.

Actual shared permission decisions for every role, creation/deny inventory and existing link and role suites pass. Browser regression syntax-check passes; live execution pending.

Thanks to Wenhao Wu, Southeast University and xet7 !
2026-09-14 12:05:14 +03:00