Lauri Ojansivu
9cbf67ba7c
Fix 8 GitHub CodeQL code-scanning alerts: incomplete escaping, URL
...
substring check, an overly-permissive regex range and a no-op replace.
- models/lib/cardUrlAutolink.js and packages/markdown/src/
template-integration.js (kept in sync, per their own comments): the
card-title markdown-link escape only escaped ']', not the backslash
that precedes it, so a title ending in a raw backslash escaped the
']' this code inserts to close the label instead of the label
actually closing. Escape '\' before ']'.
- server/lib/documentGif.js: plainSearchText's control-character strip
used literal raw control bytes inside the regex character class
instead of \x escapes, so CodeQL flagged the range as unverifiable
(adjacent control bytes are visually indistinguishable, so a
boundary could silently shift). Rewritten with explicit \x escapes,
byte-for-byte equivalent to the original range.
- tests/notificationEmailUrlLink.test.cjs: built a dynamic RegExp by
hand-escaping only '/', leaving every other meta-character -
including backslash itself - unescaped. Added the same escapeRegExp
helper already used elsewhere in the codebase.
- tests/oauthLogoutUrl.test.cjs: asserted a returned URL did not
contain a hostname via `.includes()`, a substring check a
confusable/query-embedded hostname can fool either way. Compare the
parsed `new URL().hostname` instead.
- tests/boardCreationAdminOnly.test.cjs: `.replace(/ /g, ' ')` was a
no-op (replacing a space with itself); the actual intent was to
collapse runs of spaces, `.replace(/ +/g, ' ')`.
Every fix has a positive test proving the corrected behaviour and a
negative test reproducing the exact bypass/bug CodeQL flagged. None of
these cross a security boundary on their own (the markdown-link title
escaping is a rendering-correctness fix - DOMPurify still sanitizes
the final HTML regardless, per the existing code comments; the rest
are test-only assertion bugs), so no Admin Panel security-log entry
applies.
Thanks to GitHub CodeQL and xet7 !
2026-09-10 21:20:46 +03:00
..
2026-03-24 01:50:39 +02:00
2026-06-06 07:21:59 +03:00
2026-08-16 15:05:00 +03:00
2026-08-12 16:01:51 +03:00
2026-08-17 21:11:35 +03:00
2026-07-31 07:14:52 +03:00
2026-08-16 15:15:01 +03:00
2026-08-16 15:15:01 +03:00
2026-07-17 03:34:23 +03:00
2026-09-06 02:28:46 +03:00
2026-06-06 02:06:16 +03:00
2026-09-03 02:35:23 +03:00
2026-07-23 18:55:30 +03:00
2026-07-17 01:43:53 +03:00
2026-06-20 17:45:43 +03:00
2026-08-03 15:30:15 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-07-25 23:52:31 +03:00
2026-07-11 00:14:49 +03:00
2026-07-23 18:55:30 +03:00
2026-08-29 06:01:39 +03:00
2026-07-23 18:55:30 +03:00
2026-07-17 03:07:59 +03:00
2026-07-31 16:04:18 +03:00
2026-07-24 03:23:37 +03:00
2026-08-31 13:27:15 +03:00
2026-07-23 15:03:42 +03:00
2026-08-12 15:58:17 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 08:06:14 +03:00
2026-07-17 03:07:59 +03:00
2026-09-03 15:34:41 +03:00
2026-08-25 15:04:22 +03:00
2026-07-24 03:23:37 +03:00
2026-09-10 17:54:50 +03:00
2026-09-07 17:03:59 +03:00
2026-08-17 03:43:01 +03:00
2026-08-18 18:10:47 +03:00
2026-09-10 19:59:53 +03:00
2026-07-23 18:59:30 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 20:05:23 +03:00
2026-08-25 15:40:39 +03:00
2026-07-31 04:09:40 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 21:20:46 +03:00
2026-08-28 17:40:10 +03:00
2026-09-05 02:02:01 +03:00
2026-09-06 18:35:32 +03:00
2026-09-04 22:56:52 +03:00
2026-09-10 21:11:34 +03:00
2026-09-10 21:11:34 +03:00
2026-09-10 20:40:17 +03:00
2026-09-10 19:52:40 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 20:11:47 +03:00
2026-09-10 20:20:35 +03:00
2026-09-10 20:02:49 +03:00
2026-06-06 09:28:05 +03:00
2026-08-14 13:49:59 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-08-25 17:57:13 +03:00
2026-07-20 03:11:07 +03:00
2026-07-17 23:01:52 +03:00
2026-09-10 20:59:36 +03:00
2026-09-10 20:34:30 +03:00
2026-08-23 00:16:15 +03:00
2026-07-23 18:55:30 +03:00
2026-07-20 03:11:07 +03:00
2026-08-16 15:15:01 +03:00
2026-07-24 04:56:39 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 20:23:43 +03:00
2026-07-24 10:14:29 +03:00
2026-09-06 02:28:46 +03:00
2026-09-10 19:54:38 +03:00
2026-09-07 17:03:59 +03:00
2026-08-17 02:34:38 +03:00
2026-08-17 01:02:51 +03:00
2026-09-08 17:49:24 +03:00
2026-09-10 20:44:45 +03:00
2026-09-08 17:49:24 +03:00
2026-07-17 20:20:06 +03:00
2026-08-09 03:43:07 +03:00
2026-06-22 15:46:43 +03:00
2026-09-01 10:50:55 +03:00
2026-06-06 02:06:16 +03:00
2026-09-07 17:03:59 +03:00
2026-09-06 02:28:46 +03:00
2026-08-09 02:19:15 +03:00
2026-09-10 19:45:52 +03:00
2026-08-16 16:29:31 +03:00
2026-07-31 04:09:41 +03:00
2026-09-06 02:28:46 +03:00
2026-09-10 20:35:37 +03:00
2026-07-14 17:01:35 +03:00
2026-08-03 15:30:15 +03:00
2026-07-23 18:55:30 +03:00
2026-08-25 18:15:26 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-09-05 23:51:02 +03:00
2026-07-14 13:53:11 +03:00
2026-08-14 01:25:26 +03:00
2026-09-03 15:38:58 +03:00
2026-08-09 03:29:20 +03:00
2026-08-14 01:03:08 +03:00
2026-07-17 03:07:59 +03:00
2026-07-06 16:02:56 +03:00
2026-07-17 03:36:07 +03:00
2026-08-16 15:15:01 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-09-10 20:00:19 +03:00
2026-09-10 19:59:02 +03:00
2026-08-16 15:15:01 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-08-08 02:19:08 +03:00
2026-07-09 02:14:07 +03:00
2026-09-04 21:29:31 +03:00
2026-09-04 19:26:03 +03:00
2026-09-04 21:29:31 +03:00
2026-07-22 16:22:39 +03:00
2026-09-09 00:17:38 +03:00
2026-07-23 10:49:13 +03:00
2026-08-18 23:07:48 +03:00
2026-09-01 23:09:31 +03:00
2026-08-16 16:17:13 +03:00
2026-09-08 17:49:24 +03:00
2026-07-23 18:55:30 +03:00
2026-08-12 14:45:07 +03:00
2026-08-12 15:06:45 +03:00
2026-09-10 20:07:59 +03:00
2026-08-11 16:15:06 +03:00
2026-09-10 21:00:20 +03:00
2026-09-10 20:42:42 +03:00
2026-07-28 14:47:22 +03:00
2026-08-25 17:45:40 +03:00
2026-07-09 02:14:07 +03:00
2026-08-16 15:15:01 +03:00
2026-09-10 21:12:34 +03:00
2026-08-17 01:52:34 +03:00
2026-08-10 03:52:18 +03:00
2026-09-04 21:29:31 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 12:15:56 +03:00
2026-09-10 20:06:23 +03:00
2026-08-09 02:54:56 +03:00
2026-07-06 10:33:15 +03:00
2026-07-21 10:06:40 +03:00
2026-09-05 23:51:02 +03:00
2026-08-17 23:58:04 +03:00
2026-07-09 02:14:07 +03:00
2026-07-27 23:39:37 +03:00
2026-07-09 02:14:07 +03:00
2026-09-10 19:36:48 +03:00
2026-09-10 20:46:04 +03:00
2026-07-09 09:45:53 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-09-07 17:03:59 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 21:00:23 +03:00
2026-09-10 20:02:54 +03:00
2026-08-23 00:16:15 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 03:36:50 +03:00
2026-06-05 23:44:04 +03:00
2026-08-09 03:29:20 +03:00
2026-07-09 09:45:53 +03:00
2026-08-27 10:19:56 +03:00
2026-09-10 20:51:52 +03:00
2026-07-23 18:59:30 +03:00
2026-07-31 06:47:19 +03:00
2026-07-20 03:11:07 +03:00
2026-08-25 17:52:23 +03:00
2026-08-16 15:15:01 +03:00
2026-08-09 23:38:43 +03:00
2026-07-17 20:20:06 +03:00
2026-07-23 18:55:30 +03:00
2026-08-01 14:49:52 +03:00
2026-07-24 10:14:29 +03:00
2026-08-09 02:19:15 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 20:50:08 +03:00
2026-07-23 18:55:30 +03:00
2026-08-31 13:27:15 +03:00
2026-07-09 09:45:53 +03:00
2026-09-06 10:45:35 +03:00
2026-08-25 01:14:39 +03:00
2026-08-25 17:39:23 +03:00
2026-08-25 17:32:57 +03:00
2026-08-25 17:31:29 +03:00
2026-07-17 03:07:59 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-08-16 15:15:01 +03:00
2026-08-10 21:51:21 +07:00
2026-08-25 17:27:33 +03:00
2026-08-14 18:06:10 +03:00
2026-09-05 23:51:02 +03:00
2026-06-13 17:19:51 +03:00
2026-09-10 20:32:13 +03:00
2026-08-11 16:28:38 +03:00
2026-09-10 20:02:50 +03:00
2026-09-06 02:28:46 +03:00
2026-09-10 20:38:44 +03:00
2026-08-17 03:05:41 +03:00
2026-02-08 00:48:39 +02:00
2026-08-30 18:04:24 +03:00
2026-09-10 20:37:09 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 20:51:52 +03:00
2026-07-23 18:55:30 +03:00
2026-08-12 15:58:17 +03:00
2026-09-10 20:00:09 +03:00
2026-08-16 15:15:01 +03:00