mirror of
https://github.com/myvesta/vesta.git
synced 2025-03-12 04:35:23 -07:00
Restrict v-make-tmp-file to tmp folder
Thanks to @hestiacp and @jaapmarcus
This commit is contained in:
parent
16b33262af
commit
fdc6e191c2
@ -116,7 +116,7 @@ if (isset($_POST['user']) || isset($_POST['hash'])) {
|
||||
// Check command
|
||||
if ($cmd == "'v-make-tmp-file'") {
|
||||
// Used in DNS Cluster
|
||||
$fp = fopen($_POST['arg2'], 'w');
|
||||
$fp = fopen('/tmp/'.basename($_POST['arg2']), 'w');
|
||||
fwrite($fp, $_POST['arg1']."\n");
|
||||
fclose($fp);
|
||||
$return_var = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user