mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 08:18:08 +00:00
fix(proxy): tighten config validation
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user