Security: remove dots in template to avoid a remote code execution vulnerability
This commit is contained in:
parent
ffa720d90a
commit
d3fafdfba0
@ -272,6 +272,8 @@ if ($asfile) {
|
||||
'Export/file_template_table', $filename_template);
|
||||
}
|
||||
}
|
||||
// remove dots in template to avoid a remote code execution vulnerability
|
||||
$filename_template = str_replace('.', '', $filename_template);
|
||||
$filename = PMA_expandUserString($filename_template);
|
||||
$filename = PMA_sanitize_filename($filename);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user