Skip to content

Commit

Permalink
[security] Global variables scope injection vulnerability (see PMASA-…
Browse files Browse the repository at this point in the history
…2013-7)
  • Loading branch information
lem9 committed Jun 28, 2013
1 parent 64c2b9a commit 0124642
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,6 +1,9 @@
phpMyAdmin - ChangeLog
======================

4.0.4.1 ()
- [security] Global variables scope injection vulnerability (see PMASA-2013-7)

4.0.4.0 (2013-06-17)
- bug #3959 Using DefaultTabDatabase in NavigationTree for Database Click
- bug #3961 Avoid Suhosin warning when in simulation mode
Expand Down
18 changes: 18 additions & 0 deletions import.php
Expand Up @@ -122,6 +122,24 @@
* We only need to load the selected plugin
*/

if (! in_array(
$format,
array(
'csv',
'ldi',
'mediawiki',
'ods',
'shp',
'sql',
'xml'
)
)
) {
// this should not happen for a normal user
// but only during an attack
PMA_fatalError('Incorrect format parameter');
}

$post_patterns = array(
'/^force_file_/',
'/^'. $format . '_/'
Expand Down

0 comments on commit 0124642

Please sign in to comment.