Skip to content

Commit

Permalink
bug #4594 [security] Path traversal in file inclusion of GIS factory
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Nov 20, 2014
1 parent 816fa88 commit 59557b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog
- bug #4595 [security] Path traversal can lead to leakage of line count
- bug #4578 [security] XSS vulnerability in table print view
- bug #4579 [security] XSS vulnerability in zoom search page
- bug #4594 [security] Path traversal in file inclusion of GIS factory

4.1.14.6 (2014-10-21)
- bug #4562 [security] XSS in debug SQL output
Expand Down
4 changes: 3 additions & 1 deletion libraries/gis/pma_gis_factory.php
Expand Up @@ -33,7 +33,9 @@ public static function factory($type)
include_once './libraries/gis/pma_gis_geometry.php';

$type_lower = strtolower($type);
if (! file_exists('./libraries/gis/pma_gis_' . $type_lower . '.php')) {
if (! PMA_isValid($type_lower, PMA_Util::getGISDatatypes())
|| ! file_exists('./libraries/gis/pma_gis_' . $type_lower . '.php')
) {
return false;
}
if (include_once './libraries/gis/pma_gis_' . $type_lower . '.php') {
Expand Down

0 comments on commit 59557b5

Please sign in to comment.