Commit ad6ed06
authored
fix(install.sh): validate EMAIL against shell/XML injection (PILOT-245) (#175)
${EMAIL} is written unquoted into systemd ExecStart= and unescaped
into macOS plist <string> elements. A malicious email containing
shell metacharacters (spaces, semicolons, pipes) or XML metacharacters
(<, >, &) can inject additional command-line arguments or break out
of the plist structure.
Fix: validate EMAIL against ^[A-Za-z0-9@._+-]+$ after resolution
and refuse install with a clear error if it contains unsafe characters.
Closes PILOT-2451 parent 6034af2 commit ad6ed06
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
188 | 197 | | |
189 | 198 | | |
190 | 199 | | |
| |||
0 commit comments