mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
An assigned-only member whose card assignment was removed kept the card and attachment ids and, through POST /api/attachment/upload and DELETE /api/attachment/delete/:id, still added a file to that card and soft-deleted its existing one: both asked only for board write access. The DDP methods api.attachment.upload/delete, and copy and move onto a target card over REST and DDP, had the same shape. mayWriteCardAttachment (server/lib/assignedOnlyAttachments.js) applies the same card rule the ordinary card Delete already used to all eight handlers. A refusal is recorded in Admin Panel / Problems as UnassignedAttachBleed (authz.assigned-attachment-write, medium: never disables the account). tests/unassignedAttachBleed.test.cjs reproduces the reported sequence and fails if any attachment API write lacks the card check; tests/playwright/specs/unassigned-attach-bleed.e2e.js replays it over REST. GHSA-w26g-rc43-q6cm. Thanks to Javier García Herrera and xet7 !