MDN

Go Back   Mambo - Forums Closed for posting > Mambo Announcements Forum > Security Announcements

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old November 21st, 2005, 06:28   #1
counterpoint
 
counterpoint's Avatar
 
Join Date: Sep 2005
Location: Yorkshire, England
Posts: 1,372
counterpoint is on a distinguished road
Default Security threat - globals overwrite

The question has been raised whether the fix should also be applied to the index.php, index2.php and index3.php files in /administrator. The safe answer is yes. The admin side is less obviously vulnerable, but we cannot be sure it is safe without the fix. Patched copies of the files for Mambo 4.5.2.3 are attached. For other versions, please edit the files using the fix shown below (it is exactly the same as for the user side) either as the first executable statements, or immediately after the define of _VALID_MOS.

PHP Code:
$protects = array('_REQUEST''_GET''_POST''_COOKIE''_FILES''_SERVER''_ENV''GLOBALS''_SESSION');

foreach (
$protects as $protect) {
    if ( 
in_array($protect array_keys($_REQUEST)) ||
         
in_array($protect array_keys($_GET)) ||
         
in_array($protect array_keys($_POST)) ||
         
in_array($protect array_keys($_COOKIE)) ||
         
in_array($protect array_keys($_FILES))) {
        die(
"Invalid Request.");
    }

counterpoint is offline  
Old November 21st, 2005, 06:30   #2
counterpoint
 
counterpoint's Avatar
 
Join Date: Sep 2005
Location: Yorkshire, England
Posts: 1,372
counterpoint is on a distinguished road
Default

Here are the fixed files.
Attached Files
File Type: zip mambo4523.administrator.security_fix.zip (5.2 KB, 1384 views)
counterpoint is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible security threat - globals overwrite counterpoint Security Announcements 1 November 21st, 2005 04:11
Turning Register Globals Off in .htaccess brucesenator Installation Questions 4 October 16th, 2005 02:40
Zlib Security Flaw Exposes Swath of Programs kenmcd Security & Performance 2 August 16th, 2005 14:12
Upgrade Security Levels PLEASE! Adrian_A Wishlist & Feature Requests 7 July 11th, 2005 14:00


All times are GMT -7. The time now is 07:22.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.