Dusk1e
5f26d60860
fix(tools): prevent command argument injection and path traversal in checkpoint manager
...
This commit addresses a security vulnerability where unsanitized user inputs for commit_hash and file_path were passed directly to git commands in CheckpointManager.restore() and diff(). It validates commit hashes to be strictly hexadecimal characters without leading dashes (preventing flag injection like '--patch') and enforces file paths to stay within the working directory via root resolution. Regression tests test_restore_rejects_argument_injection, test_restore_rejects_invalid_hex_chars, and test_restore_rejects_path_traversal were added.
2026-04-11 14:25:13 -07:00
..
2026-04-07 08:40:22 -04:00
2026-04-10 21:14:32 -07:00
2026-03-17 02:33:12 -07:00
2026-03-31 08:48:54 +09:00
2026-03-23 07:43:12 -07:00
2026-04-10 05:19:21 -07:00
2026-04-08 02:24:32 -07:00
2026-04-01 04:18:50 -07:00
2026-04-10 03:44:43 -07:00
2026-04-11 14:02:46 -07:00
2026-04-08 02:24:32 -07:00
2026-04-11 14:25:13 -07:00
2026-04-07 13:36:38 -07:00
2026-04-11 14:02:58 -07:00
2026-04-11 13:59:52 -07:00
2026-04-11 13:59:52 -07:00
2026-04-07 10:25:31 -07:00
2026-04-10 21:16:53 -07:00
2026-04-10 03:44:43 -07:00
2026-04-10 21:16:53 -07:00
2026-04-08 02:24:32 -07:00
2026-04-10 16:47:44 -07:00
2026-04-07 13:36:38 -07:00
2026-04-07 13:36:38 -07:00
2026-04-11 14:02:58 -07:00
2026-04-02 12:40:03 +11:00
2026-04-10 03:05:04 -07:00
2026-04-10 16:47:44 -07:00
2026-04-07 13:36:38 -07:00
2026-03-27 15:28:19 -07:00
2026-03-18 02:55:30 -07:00
2026-03-11 20:02:36 -07:00
2026-04-05 12:46:07 -07:00
2026-04-10 16:47:44 -07:00
2026-04-11 13:59:52 -07:00
2026-04-11 14:02:58 -07:00
2026-04-08 02:24:32 -07:00
2026-04-07 10:25:31 -07:00
2026-04-10 17:04:38 -07:00
2026-04-07 13:36:38 -07:00
2026-04-11 13:59:52 -07:00
2026-04-10 03:44:43 -07:00
2026-04-10 16:47:44 -07:00
2026-04-11 01:21:20 -07:00
2026-04-11 13:59:52 -07:00
2026-04-11 13:46:16 -07:00
2026-03-25 19:47:58 -07:00
2026-04-07 13:36:38 -07:00
2026-03-31 08:48:54 +09:00
2026-04-09 16:24:53 -07:00
2026-04-10 03:27:30 -07:00
2026-04-11 01:56:55 -07:00
2026-04-10 05:04:28 -07:00
2026-04-11 11:53:04 -07:00
2026-04-10 03:44:43 -07:00
2026-04-10 03:05:04 -07:00
2026-04-07 10:25:31 -07:00