mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
The advisory reports that the route checks only the login, because it calls Authentication.checkUserId, and that any account can read any board's domain sharing. checkUserId is the site admin check: a logged-in caller who is not an admin gets 403. The route has answered only site admins since #5850 added it. Before v12.15 the check refused `admin === undefined`, and Meteor's findOneAsync gives undefined for no match, so it refused everyone else then too. Nothing to fix in the route. Its OpenAPI description claimed anyone able to read the board may list the domains; it now says site admin, and that members get the list with GET /api/boards/:boardId. checkUserId gets a comment saying what it is. tests/restBoardDomainsAccess.test.cjs runs the real handler with the real Authentication object: the reporter's non-member, members, ended memberships and logged-out callers are refused, a missing board answers like an existing one, a site admin reads the list. A whole-tree negative test checks that every REST route with :boardId checks that board or a site admin, and that a login check alone would be caught. tests/playwright/specs/rest-board-domains-access.e2e.js runs the report's proof of concept against a running WeKan in Chromium, WebKit and Firefox: 403. Thanks to a25370 and xet7 !