Repository navigation
Commit ce3cada
fix(telegram): require alphanumeric-start sandbox names and exclusive file creation
Address CodeRabbit review feedback:
- Regex now requires first character to be alphanumeric, preventing
option injection via names like "-v" or "--help" into execFileSync
- Add flag: "wx" to writeFileSync for exclusive creation, preventing
TOCTOU/symlink attacks on the SSH config temp file
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 8b6dbab commit ce3cada
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments