Skip to content

Commit

Permalink
Security: remove dots in template to avoid a remote code execution vu…
Browse files Browse the repository at this point in the history
…lnerability
  • Loading branch information
lem9 committed Apr 24, 2013
1 parent ffa720d commit d3fafdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions export.php
Expand Up @@ -272,6 +272,8 @@ function PMA_exportOutputHandler($line)
'Export/file_template_table', $filename_template); '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_expandUserString($filename_template);
$filename = PMA_sanitize_filename($filename); $filename = PMA_sanitize_filename($filename);


Expand Down

0 comments on commit d3fafdf

Please sign in to comment.