Commit Graph
5 Commits
Author SHA1 Message Date
Lauri Ojansivu 047bde7546 Fix HookBleed: a member cannot make WeKan post their own message through a board webhook.
The outgoingWebhooks method checked that the integration exists and the caller
is a board member, then built the request from the CALLER's integration object
- whose type decided two-way, whose token was sent - and the caller's own
description and params. Any member, read-only included, could post arbitrary
text to the board's Slack, Matrix or other chat webhook as WeKan, without a
rate limit, or turn a one-way hook into a two-way one whose answer rewrites
comments. The request is now built from the stored integration; from a client
the only call allowed is the card-opened notification, with its params rebuilt
on the server from a card on that board. Anything else is refused and recorded
as HookBleed. Unit tests (including the forged call) and a browser test; two
tests whose stub integration lacked a url and type now stub the stored one.

Thanks to xet7 !
2026-10-02 11:25:52 +03:00
Lauri Ojansivu a81b4d5d97 Bring stale source guards up to the behaviour their code deliberately changed.
Eighteen suites had been failing because the code they read had changed on
purpose: notification delivery moved to stored plans, exports gained the
admin-only field guard and Scrum transfer, board copy became selectable,
card copy re-keys filtered custom fields, the Scrum settings menu entry was
added, new operator-only scripts, directory-login canaries, a rate-limit rule
that made the first mention of undoLast no longer the method, rule parts and
Sync-scoped recording in hooks evaluated by test harnesses, per-board card
dragging, and a Dependabot file-type bump. Each guard now pins the new
behaviour with a comment naming the change, keeps its original assertions,
and several gained positive and negative cases (export field guard, copy
defaults, Sync-scoped recording, card dragging, method lookup).

Two list-sync browser specs logged a second context in with the same
session token; they now get their own tokens, and the token guard counts
distinct pages instead of logins.

Thanks to xet7 !
2026-09-29 14:49:07 +03:00
Lauri Ojansivu 71488fa688 Separate captured webhook payload preparation from HTTP delivery 2026-09-28 05:23:14 +03:00
Lauri Ojansivu 2ae279838d Share ordinary notification audience selection with saved delivery preparation 2026-09-28 05:07:25 +03:00
Lauri Ojansivu 68dcb02d13 Preserve zero and false activity values in notifications and webhooks 2026-09-28 02:45:22 +03:00