Bug in install.php's phpNuke Checker Bug in install.php's phpNuke Checker
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Bug in install.php's phpNuke Checker

Started by jgb6534, July 22, 2005, 12:35:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jgb6534

I just tried to install Coppermine 1.4.1 and was blocked from doing so by the phpNuke check at the start of install.php.

This site does not have phpNuke installed, but it does happen to have two, nested versions of Mambo on it. That is, I was trying to install it in:

/public_html/redrover/portfolio/

This is a Mambo site so the following directory exists:

/public_html/redrover/modules/

However there is another Mambo site installed below it and consequently, there's also the following directory:

/public_html/modules/

While doing its phpNuke check (see below), install.php found ../../modules and erroneously thought there was a phpNuke installation.  It gave me the option of continuing, in theory, and I clicked the "continue" link, filled in the form, and clicked "let's go."  But it just cycled back to the error message and wouldn't let me proceed.

phpNuke check:

// Check if standalone is installed in a portal like phpNuke
if (is_dir('../../modules') && $_REQUEST['continue_anyway'] != 1) {
    die(
        "<html><body><h1>ERROR</h1>You seem to be trying to install the standalone Coppermine into your Nuke portal.<br />
         This version can only be used as standalone!<br />
         Some server setups might display this warning even though you don't have a nuke portal installed - if this is the case for you, <a href=\"" . $PHP_SELF . "?continue_anyway=1\">continue</a> with the install.
         If you are using a nuke portal, you might want to take a look into <a href=\"http://www.cpgnuke.com/\">CpgNuke</a> or use one of the (unsupported)
         <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=95984\">coppermine ports</a>
         - do not continue!</body></html>"
         );
} // end check
Jeremy Butler

www.TVCrit.com
www.ScreenSite.org
www.tcf.ua.edu

kegobeer

Comment out that bit of code and try again.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

jgb6534

Quote from: kegobeer on July 22, 2005, 02:09:55 AM
Comment out that bit of code and try again.
I tricked it by temporarily renaming the offending modules directory.

Worked just fine.

But I might suggest a more accurate way of checking for phpNuke--like maybe looking for a specific PHPN file in addition to a directory.

Just a thought...

Jeremy Butler

www.TVCrit.com
www.ScreenSite.org
www.tcf.ua.edu

Nibbler