mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 01:49:41 -05:00
(privilege escalation via read-level authz on write operations, CWE-862). All six mutating REST handlers in `server/models/customFields.js` (POST/PUT custom-fields, POST/PUT/DELETE dropdown-items, DELETE custom-fields) called the read-level `Authentication.checkBoardAccess` instead of the write-level `checkBoardWriteAccess`, letting a board member with the read-only role (`isReadOnly` / `isReadAssignedOnly`) write Custom Field data via the REST API when `WITH_API=true`. Replaced the check with `checkBoardWriteAccess` in all six mutating handlers (the two GET handlers correctly stay on `checkBoardAccess`), mirroring `lists.js`/`swimlanes.js`/`cards.js`. Thanks to Wernerina for the coordinated disclosure, and Claude.