- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 44 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Do any one have Security Fix for 5.6? [ ]
Author
Message
Nuke-SG
Private
Joined: Jan 14, 2003
Posts: 44
Location: Singapore
Posted:
Tue Feb 04, 2003 8:24 pm
Do anyone have Security fix for phpnuke5.6?
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Wed Feb 05, 2003 6:55 am
Its quite easy actually for 5.x and 6.x. Just replace in index.php:
#if (ereg("\.\.",$name) || ereg("\.\.",$file)) {
with
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.", $mod_file) || ereg("\.\.", $mop)) {
In mainfile.php add after <?php:
if (ereg("\\'",base64_decode($admin)) || ereg("\\'",base64_decode($user))) {
die("I don't like you");
}
I myself haven't made changes to modules.php since modpath is set thus:
$modpath="modules/$name/$file.php";
if (file_exists($modpath)) {
include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum