L4XB
b8ce049abb
fix(hooks): block a bypass that a brace group or subshell pipes into a shell
...
pipelineSources() read the literal output of the commands that feed a shell, but a brace group or subshell producer has no words of its own, so nothing it printed reached the check. { echo 'git commit --no-verify -m x'; } | sh and (echo 'git push --no-verify'; printf x) | bash passed the guard, while echo 'git commit --no-verify -m x' | sh is blocked. shell-scan now keeps the source text of a closed scope, and pipelineSources() reads the commands in it that write to the group's output, as it already does for a plain producer.
2026-10-23 07:19:32 +02:00
..
2026-10-23 07:19:32 +02:00
2026-07-28 21:32:42 -04:00
2026-06-15 13:48:46 -04:00
2026-10-23 07:19:32 +02:00
2026-09-07 16:26:10 -04:00
2026-03-04 14:48:06 -08:00
2026-09-28 07:07:45 -04:00
2026-10-10 17:44:29 -04:00
2026-10-07 17:19:46 +00:00
2026-10-11 06:24:18 +08:00
2026-06-07 13:27:00 +08:00
2026-04-02 17:33:17 -07:00
2026-06-11 00:31:33 -04:00
2026-09-07 16:26:10 -04:00
2026-08-10 22:33:10 -04:00
2026-09-13 04:55:52 +08:00
2026-10-11 09:42:05 -04:00
2026-02-18 07:40:12 +00:00
2026-10-19 22:03:57 -04:00
2026-09-17 17:29:26 +00:00
2026-09-05 16:12:58 -04:00
2026-10-09 15:59:20 -04:00
2026-10-09 15:59:20 -04:00
2026-10-09 15:59:20 -04:00
2026-10-09 19:10:06 -04:00
2026-04-29 17:45:22 -04:00
2026-04-29 18:03:33 -04:00
2026-10-11 00:15:12 +08:00
2026-10-03 20:20:40 +05:30
2026-10-09 15:56:14 -04:00
2026-10-10 19:19:30 -04:00
2026-10-03 20:20:40 +05:30
2026-10-10 17:53:23 -04:00
2026-04-14 21:23:57 -07:00
2026-10-03 20:20:40 +05:30
2026-04-14 21:23:57 -07:00
2026-04-14 21:23:57 -07:00
2026-10-08 23:46:56 +02:00
2026-09-07 16:26:10 -04:00
2026-09-07 16:26:10 -04:00
2026-09-07 16:26:10 -04:00
2026-10-09 15:59:20 -04:00
2026-10-10 19:13:24 -04:00
2026-06-07 13:25:39 +08:00
2026-09-18 18:42:20 -04:00
2026-05-28 07:45:46 -04:00
2026-07-20 16:21:03 -04:00
2026-07-28 21:32:42 -04:00
2026-06-29 15:54:55 -07:00
2026-05-28 07:45:46 -04:00
2026-10-10 19:13:24 -04:00
2026-09-14 13:24:58 +05:30
2026-10-11 00:15:12 +08:00
2026-09-05 17:08:47 -07:00
2026-10-08 23:46:56 +02:00
2026-10-19 22:03:57 -04:00
2026-09-18 18:42:20 -04:00
2026-10-10 20:14:22 -04:00
2026-10-07 19:45:21 -05:00
2026-10-10 17:38:00 -04:00
2026-08-29 14:55:13 -04:00