Lauri Ojansivu
c2905e17ce
Stop a custom-field template regex from stopping the server (ReDoS).
...
The ${"regex":...} token of a string-template custom field runs a pattern a
board member writes against a value another member writes. Rule e-mails format
card details on the server, so a pattern like (a+)+$ on 'aaaa...!' stopped the
one event loop for every user. The server now runs the regex in its own V8
context under a 50 ms limit, which V8 enforces inside backtracking, and pattern
and value are capped in length everywhere (the browser too, so one member's
format cannot hang the others'). A stopped regex leaves the token visible. The
negative test fails on any server call of the formatter without the bounded
runner.
Thanks to xet7 !
2026-10-02 11:21:50 +03:00
..
2026-10-02 11:21:50 +03:00
2026-09-28 17:23:15 +03:00
2026-09-29 17:59:21 +03:00
2026-03-24 01:50:39 +02:00
2026-03-24 01:50:39 +02:00
2026-09-27 17:05:01 +03:00
2026-09-28 04:37:02 +03:00
2026-06-20 14:39:41 +03:00
2026-05-31 11:12:41 +03:00
2026-03-24 01:50:39 +02:00
2026-10-02 11:05:04 +03:00
2026-10-02 11:10:26 +03:00
2026-06-19 11:35:28 +03:00
2026-10-02 11:05:04 +03:00
2026-09-09 18:15:10 +03:00
2026-10-01 19:18:58 +03:00
2026-03-24 01:50:39 +02:00
2026-09-28 12:55:11 +03:00
2026-10-01 19:18:58 +03:00
2026-09-10 21:29:22 +03:00
2026-09-28 16:47:55 +03:00
2026-09-26 23:00:58 +03:00
2026-09-15 00:54:45 +03:00
2026-03-24 01:50:39 +02:00
2026-09-23 19:49:33 +03:00
2026-09-27 20:53:56 +03:00
2026-09-07 17:03:59 +03:00
2026-10-02 10:44:08 +03:00
2026-10-02 10:44:08 +03:00
2026-09-29 17:59:21 +03:00
2026-09-27 18:21:58 +03:00
2026-09-27 18:21:58 +03:00
2026-09-27 18:21:58 +03:00
2026-08-09 03:43:07 +03:00
2026-09-20 21:06:30 +03:00
2026-07-27 23:39:37 +03:00
2026-09-30 02:54:25 +03:00
2026-10-02 11:20:58 +03:00
2026-07-05 09:30:12 +03:00
2026-03-24 01:50:39 +02:00
2026-05-31 02:22:31 +03:00
2026-09-29 09:26:20 +03:00
2026-09-30 01:56:38 +03:00
2026-09-28 03:49:38 +03:00
2026-09-28 02:30:48 +03:00
2026-08-16 15:52:54 +03:00
2026-08-16 16:17:13 +03:00
2026-07-26 07:48:18 +03:00
2026-03-24 01:50:39 +02:00
2026-03-24 01:50:39 +02:00
2026-03-24 01:50:39 +02:00
2026-09-29 09:26:20 +03:00
2026-07-21 10:06:41 +03:00
2026-09-29 14:34:18 +03:00
2026-03-24 01:50:39 +02:00
2026-09-27 22:20:46 +03:00
2026-09-27 17:33:38 +03:00
2026-09-27 17:33:38 +03:00
2026-09-27 22:20:46 +03:00
2026-09-30 02:00:42 +03:00
2026-09-27 19:55:15 +03:00
2026-03-24 01:50:39 +02:00
2026-06-19 11:35:28 +03:00
2026-07-22 16:22:39 +03:00
2026-09-19 14:00:48 +03:00
2026-09-29 08:59:48 +03:00
2026-06-13 17:19:51 +03:00
2026-09-29 14:34:18 +03:00
2026-03-24 01:50:39 +02:00
2026-10-02 11:04:02 +03:00
2026-10-02 10:37:08 +03:00
2026-05-30 23:22:44 +03:00
2026-03-24 01:50:39 +02:00
2026-09-29 17:59:21 +03:00
2026-06-12 20:15:56 +03:00