Commit 7545bd3
超渡法師
fix(agentcore/kiro): prevent argument injection in run.sh
Remove the --* flag promotion loop that allowed untrusted prompt
content to be interpreted as kiro-cli options. The prompt is now
passed as a positional argument after a -- end-of-options separator,
ensuring it is always treated as text regardless of content.
Extra flags can still be supplied via the KIRO_EXTRA_FLAGS env var
(operator-controlled, trusted channel).
Closes #10801 parent be722b3 commit 7545bd3
1 file changed
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 48 | + | |
57 | 49 | | |
58 | 50 | | |
59 | 51 | | |
60 | 52 | | |
61 | 53 | | |
62 | | - | |
63 | | - | |
| 54 | + | |
| 55 | + | |
64 | 56 | | |
0 commit comments