fix(proxy): tighten config validation

This commit is contained in:
Andras Bacsai committed 2026-06-01 15:14:28 +02:00
1 parent 4d0be415c8
commit 419593e7d4
5 files changed
+121 -33

No files matched your search

@@ -43,8 +43,7 @@ class NewDynamicConfiguration extends Component
'value' => 'required',
]);
// Additional security validation to prevent command injection
validateShellSafePath($this->fileName, 'proxy configuration filename');
validateFilenameSafe($this->fileName, 'proxy configuration filename');
if (data_get($this->parameters, 'server_uuid')) {
$this->server = Server::ownedByCurrentTeam()->whereUuid(data_get($this->parameters, 'server_uuid'))->first();