Additional register_globals vulnerability check. Merged in from big Wikia merge:...
authorSean Colombo <sean_colombo@users.mediawiki.org>
Fri, 16 Sep 2011 20:31:37 +0000 (20:31 +0000)
committerSean Colombo <sean_colombo@users.mediawiki.org>
Fri, 16 Sep 2011 20:31:37 +0000 (20:31 +0000)
includes/WebStart.php

index 6cfb472..17f8216 100644 (file)
@@ -26,7 +26,7 @@
 # Protect against register_globals
 # This must be done before any globals are set by the code
 if ( ini_get( 'register_globals' ) ) {
-       if ( isset( $_REQUEST['GLOBALS'] ) ) {
+       if ( isset( $_REQUEST['GLOBALS'] ) || isset( $_FILES['GLOBALS'] ) ) {
                die( '<a href="http://www.hardened-php.net/globals-problem">$GLOBALS overwrite vulnerability</a>');
        }
        $verboten = array(