mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 17:45:18 -05:00
v13.31
6
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ac856dd38f |
Cloud Panel: only with the CLOUD environment variable; its Cloud Admins, customer login, support boards and allowed addresses.
CloudPanelBleed. Any site administrator of any WeKan could set the Cloud Panel Domain and its SuperAdmin in Admin Panel / People / Cloud and then make the server connect to any MongoDB server with credentials of their choosing - Test connection and Import build a MongoClient from the domain's database settings. A customer is the administrator of their own WeKan container, so a customer could reach MongoDB servers on the internal network. The Cloud Panel now exists only where the server has CLOUD=<its domain> (models/lib/cloudPanel.js cloudDomainFromEnv). The domain is never read from the database, the browser or the REST API; the People / Cloud pane is gone and cloudPanelGetSettings / cloudPanelSetSettings always refuse. Every cloudPanel* method except cloudPanelWhoAmI passes the CLOUD gate before anything else, its argument checks included, and the one MongoClient built from data that is not the environment (withSource) has the gate in its own body. A refusal is recorded in Admin Panel / Problems under the new keys authz.cloud-panel-off, authz.cloud-panel-access and authn.cloud-admin-address (bleed CloudPanelBleed; none disables an account). - Cloud Admins: on the CLOUD container its site administrators - the first registered user is one - not disabled, never a customer's account. They have Admin Panel / Cloud (/admin/cloud/<pane>, a tab shown only for a Cloud Admin at the CLOUD address): Domains, Invoices, Tickets, Chat, Cloudflare, Caddy, Allowed addresses. /cloud stays the customers' panel. - Customer login: a password login handler, ahead of accounts-password's and after the timing normalization, only at the CLOUD address, only for a name exactly one domain with its own database lists, never for a name an account of the panel's own has. The password is checked against that customer's own database hash with Accounts._checkPasswordAsync, under an id no local account has; a disabled or password-less account there is refused, and so is a wrong 2FA code. On success a local non-admin account without a password, services.cloudCustomer, which sees exactly its own domain: info, invoices, tickets and chat. - Support boards: one WeKan board per domain, "Support: <domain>", lists Open / In progress / Done for tickets and Chat with one card whose comments are the support chat (Board View / Chat shows them as a chat). Cloud Admins are board admins, customers Comment only: they read and comment but cannot create, edit, move, archive or delete a card nor manage the board; the panel adds their tickets into Open. The earlier cloudChatMessages are moved once into the chat card; imported Rocket.Chat and SandChat conversations go there too. - Allowed addresses: IPv4, IPv6 and CIDR ranges (models/lib/cloudAddresses.js). When set, a Cloud Admin login (resume included) from elsewhere is refused and recorded, and so is a Cloud Admin method. A list without the saver's own address is refused; CLOUD_ADMIN_ANY_ADDRESS=true sets it aside for a locked-out operator. Tests: tests/cloudPanel.test.cjs, tests/cloudAddresses.test.cjs, tests/cloudPanelAccess.test.cjs (the real methods and login handler without and with CLOUD), tests/cloudPanelGate.test.cjs (the MongoClient source scan), server/lib/tests/cloudPanel.security.tests.js and tests/playwright/specs/cloud-panel.e2e.js (negative without CLOUD; the positive part runs with CLOUD=localhost WEKAN_TEST_CLOUD=true). The guards that pin board inserts, comment inserts, card-reading paths, copy/move methods, the Admin Panel tabs and method areas list the panel's support board and its methods, with the reason. Thanks to xet7 ! |
||
|
|
3202a1d7ac |
A list's role exception also refuses deleting, archiving or moving it, and its swimlane.
Decided by the maintainer on 2026-11-18 (TODO.md). Deleting, archiving, restoring or moving a list, and deleting, archiving or moving a swimlane, does the same to the cards in it, so a list that refuses a role write access (#4527) now refuses those too: - lists.softRemove, lists.restore and moveList answer not-authorized; - the REST list DELETE, archive, unarchive and move, and the REST swimlane DELETE, answer 403, recorded as ListLockBleed; - moveSwimlane is refused when a list holding its cards, or bound to it, refuses the role (swimlaneRefusingListIds); - client writes meet new Lists and Swimlanes deny rules, and the list menu no longer offers Archive list or Archive all cards in such a list. Renaming, recolouring and reordering are not refused, and board admins are never restricted. tests/listLockStructure.test.cjs runs the swimlane gate and pins every path; list-lock-bulk.e2e.js replays the REST cases. Sandboxed route tests get a pass-through gate. Thanks to xet7 ! |
||
|
|
ba3d94390b |
ListLockBulkBleed: bulk and server-side card writes ask the list's role exception.
GHSA-83w9-74mx-7v83. A board admin can refuse a role write access in one list (#4527, roleExceptions). REST DELETE /api/boards/:boardId/cards/bulk and POST /api/boards/:boardId/cards/labels take their cards from the body, so no URL names a list, and asked only for board write access; the methods archiveSelectedCards, copyCard and createLinkedCard write from server code, past the Cards allow/deny rules. A normal member the list refused could delete, relabel and archive its cards and copy or link new cards into it. - The bulk routes read every card and ask each list before the first write (assertCardListsNotRefused): any refusal is a 403 and nothing changes, recorded in Admin Panel / Problems as ListLockBulkBleed (authz.list-locked-bulk, medium). Each removal and relabel is keyed on the list that was checked. - The methods refuse with not-authorized (assertListsWritable), not recorded: Copy Card and Multi-Selection reach them in ordinary use. - The same shape, fixed with the same check: createBoardFromCard, addSubtaskCard, createCardWithDueDate (which also did not check that the list is on the board), the iCalendar import over DDP and REST, sending and receiving board email, vcsCreateIssue, moveBoardObjects, History's undo/redo/Restore, position history undo/redo of a card, renameAttachment, the scoped import and a card's rule button. Dependency lines keep their own board-wide rule. tests/listLockBulkBleed.test.cjs runs the gate on the reporter's board and pins every path; tests/playwright/specs/list-lock-bulk.e2e.js replays the proof of concept. Older guards that pinned the previous shape are updated with the reason. Thanks to immanuwell and xet7 ! |
||
|
|
5c1f6088f4 |
Fix CreateBleed: "Only admins can create boards" holds on every path.
GHSA-qcfm-2g4w-wqcc. Admin Panel / Settings / Visibility / "Only admins can create boards" (#4475) was checked only inside createBoardWithInitialSwimlanes, the Add Board form. A non-admin still created working boards by a client Boards.insert (Boards.allow.insert approves any signed-in user), POST /api/boards and both board import routes, as reported, and also by importBoard, cloneBoard, copyBoard, POST /api/boards/:boardId/copy and createBoardFromCard. One decision (models/lib/boardCreationPolicy.js) and one guard (server/lib/boardCreationGuard.js) are asked by every one of those paths before they write, and by a new Boards.deny insert rule. A board template stays every member's own; boards WeKan makes itself (a Templates container, a board's subtasks board) are not created by the user. A REST refusal is 403. A refusal is recorded in Admin Panel / Problems as CreateBleed (authz.board-creation, low, CWE-863, blocks no account), and Duplicate and "Create board from card" are hidden like Add Board, so only a client bypassing the interface reaches it. tests/createBleed.test.cjs drives the decision, the guard and the real deny rule against the reporter's console insert, and fails if any path that creates a board for a user does not ask the guard, or if anything else reads the setting. tests/playwright/specs/createbleed-board-creation-admin-only.e2e.js replays the report against a running server. The guards that pinned the old inline check now pin the shared one. Thanks to tsurutanmen and xet7 ! |
||
|
|
314c153c9b |
Admin Panel / Problems: AuthBleed attempts are recorded.
copyBoard, copyCard, copySwimlane and createCardWithDueDate - four of the AuthBleed methods - refused with plain not-authorized errors, so an attempt left no trace in Admin Panel / Problems. AuthBleed was on the PENDING list of tests/hallOfFameProblemsCoverage.test.cjs. A new catalog key, authz.copy (AuthBleed, high, CWE-862), is recorded where no legitimate client can be: - a signed-out caller of any of the four - no WeKan client copies while signed out, and with no userId nobody can be blocked; - any refusal of createCardWithDueDate, which no WeKan client calls. The membership refusals of copyBoard, copyCard and copySwimlane are deliberately NOT recorded: a member who is not admin of a shared or default board template, or a stale Copy Card / Copy Swimlane dialog, reaches them in ordinary use, and a high-severity record naming the account disables that login (server/lib/blockOnSecurityEvent.js). Each record is wrapped so logging cannot break the guard. tests/authBleedCopyMethods.test.cjs runs the real method bodies and pins both: what is recorded, and that the ordinary-use refusals are not. AuthBleed leaves the PENDING list. This was in CHANGELOG TODO Later as needing a maintainer decision. Thanks to xet7 ! |
||
|
|
ebcd02be6f |
Hall of Fame regression audit: every fixed vulnerability still fixed, siblings of six of them closed.
Every Hall of Fame vulnerability without a test naming it (24 names, 30 advisories) was checked against the current source. No fix had been reverted. Looking for the same mistake elsewhere found siblings: - FloppyBleed: the fs-path-heal upgrade step joined an attachment's stored name into candidate paths as-is; a record a client inserted named ../../../etc/passwd made the next upgrade copy that file into storage - an arbitrary file read. Only the name's last component is used now; the bulk move limits a legacy name's extension the same way. - FilePathBleed (GHSA-g6vm-7757-pr88): the insert guard looked only inside versions; with versions left out ostrio:files falls back to a top-level path, which removing the record deletes and validation reads. A client's top-level path is refused for attachments and avatars, recorded by the existing canaries. - MoveStorageBleed: validateAttachment, which deletes a file failing the current upload rules, was open to anybody who could see the board, a public one included. Only who may change the file, or a site admin, validates now; a refusal is recorded (authz.attachment-validate). - HookUrlBleed / IntegrationBleed: the REST reads of a board's integrations gave the webhook URL - whose path is its secret - to every member reading the board; non-admins get what the publication gives them. - AttachmentMigrationBleed: four migration methods answered any logged-in user about any board, deleteDuplicateEmptyLists.getStatus with a private board's list titles; they require a visible board and record refusals (authz.migration-board). - LegacyAttachBleed (GHSA-xcxp-hx9w-q5q9) and MimeStorageBleed (GHSA-rv5g-5p4g-3v89): the legacy route judged a name dangerous only for .svg, the response policy missed x-javascript, ecmascript, xsl and +xml types, and the sniffers missed <tag/onx= handlers. OIDCBleed refusals are now recorded in Admin Panel / Problems too. New suites name the vulnerabilities they guard, existing ones name the advisories they already covered, and tests/securityRegressionCoverage counts 128 of 137 published vulnerabilities with a named test (was 125). Thanks to xet7 ! |