mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-07-26 19:40:31 +02:00
Patched the RCE (#636)
I have patched the file upload directory traversal to Authenticated Remote Code Execution Vulnerability.
This commit is contained in:
@@ -880,7 +880,7 @@ if (!empty($_FILES) && !FM_READONLY) {
|
||||
|
||||
$targetPath = $path . $ds;
|
||||
if ( is_writable($targetPath) ) {
|
||||
$fullPath = $path . '/' . $_REQUEST['fullpath'];
|
||||
$fullPath = $path . '/' . str_replace("./","_",$_REQUEST['fullpath']);
|
||||
$folder = substr($fullPath, 0, strrpos($fullPath, "/"));
|
||||
|
||||
if(file_exists ($fullPath) && !$override_file_name) {
|
||||
|
Reference in New Issue
Block a user