Commit ab611ea
committed
fix(security): enforce folder validator in ncl groups create (CWE-22)
The group resource has no customInsert, so genericCreate runs a raw INSERT with
the operator-supplied folder directly, skipping createAgentGroup ->
assertValidGroupFolder. `ncl groups create --folder ../../etc` then persists a
folder that escapes GROUPS_DIR; buildMounts/group-init bind-mount it RW and
mkdir it — a path traversal into a container sandbox escape. Validate at the CLI
create chokepoint too.1 parent ee7f891 commit ab611ea
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
61 | 74 | | |
62 | 75 | | |
63 | 76 | | |
| |||
0 commit comments