Hidde Beydals
5ea4e814f5
Add safe guards for relative paths
...
This commit adds multiple safe guards for relative paths, ensuring they
never traverse outside the working directory.
The `SafeRelativePath` flag calculates the safe relative path based on a
relative base dir, which results in a flattened path.
The write methods of `manifestgen` make use of the `SecureJoin` as well,
to ensure writes are never outside of the given directory when used as
a lib outside of the CLI.
Signed-off-by: Hidde Beydals <hello@hidde.co >
2020-12-14 15:14:49 +01:00
..
2020-12-14 15:14:49 +01:00
2020-12-14 15:14:49 +01:00
2020-12-14 15:14:49 +01:00
2020-11-26 11:53:08 +02:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00
2020-11-20 13:19:40 +02:00
2020-11-20 13:19:40 +02:00
2020-11-27 12:20:55 +02:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-14 15:14:49 +01:00
2020-11-20 13:19:40 +02:00
2020-12-09 17:39:04 +02:00
2020-12-04 16:54:13 +02:00
2020-12-04 13:15:37 +02:00
2020-12-11 12:10:30 +01:00
2020-12-04 13:15:37 +02:00
2020-10-29 16:25:16 +01:00
2020-11-30 10:28:03 +02:00
2020-12-11 16:34:18 +00:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-11-26 17:17:50 +02:00
2020-11-20 13:19:40 +02:00
2020-11-26 17:17:50 +02:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-11-26 17:17:50 +02:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-13 16:35:19 +02:00
2020-12-10 20:21:09 +01:00
2020-12-10 20:21:09 +01:00
2020-12-11 16:34:18 +00:00
2020-11-30 11:39:55 +02:00
2020-11-02 21:32:55 +01:00
2020-11-30 11:39:55 +02:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-11-30 11:39:55 +02:00
2020-10-29 16:25:16 +01:00
2020-12-11 16:34:18 +00:00
2020-11-20 13:19:40 +02:00
2020-11-26 16:40:54 +02:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-11-26 16:40:54 +02:00
2020-11-20 13:19:40 +02:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02:00
2020-11-26 16:40:54 +02:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-12-11 16:34:18 +00:00
2020-11-02 21:32:55 +01:00
2020-11-02 21:32:55 +01:00
2020-11-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-11-26 16:22:47 +02:00
2020-12-11 16:34:18 +00:00
2020-11-26 11:53:08 +02:00