You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 64 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Another bogus security warning? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Mar 25, 2003 11:59 am Reply with quoteBack to top

It has been brought to my attention that BugTrack has sent emails to subscribers about a viewpage.php file in PHP-Nuke that allows anyone to view any file on the server, i have yet to find this file, anyone have better luck?

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Mar 25, 2003 12:53 pm Reply with quoteBack to top

chatserv wrote:
It has been brought to my attention that BugTrack has sent emails to subscribers about a viewpage.php file in PHP-Nuke that allows anyone to view any file on the server, i have yet to find this file, anyone have better luck?

I can't find it in 6.5, however, if you do a google search on "viewpage phpnuke" (no quotes though) you will get back several hits where there is a /somesite/viewpage.php?file=... urls. That appears to be the exploit potential. Shocked
Find all posts by RavenView user's profileSend private messageVisit poster's website
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Tue Mar 25, 2003 12:59 pm Reply with quoteBack to top

I haven't read the emails yet but if thats the case they they need to improve the verification before releasing reports. I heard if you are on a Nuke site and find a picture of SpongeBob you can click it and get 3 wishes bestoed apon you by a genie. Razz

_________________
www.netflake.com
www.glowoptics.com
Find all posts by sixonetonoffunView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Mar 25, 2003 1:03 pm Reply with quoteBack to top

I don't have a copy of version 5.x nuke. Is it in there perchance?
Find all posts by RavenView user's profileSend private messageVisit poster's website
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Tue Mar 25, 2003 1:03 pm Reply with quoteBack to top

NukeStyles Custom About Us module?? Or ??

_________________
www.netflake.com
www.glowoptics.com
Find all posts by sixonetonoffunView user's profileSend private message
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Tue Mar 25, 2003 1:11 pm Reply with quoteBack to top

frogmans posted a patch for banners.php anyone checked this out yet?

_________________
www.netflake.com
www.glowoptics.com
Find all posts by sixonetonoffunView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Mar 25, 2003 1:50 pm Reply with quoteBack to top

It basically adds the following to the start of the file
Code:
$cid=addslashes($cid);
$login=addslashes($login);

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Tue Mar 25, 2003 2:30 pm Reply with quoteBack to top

Dang that is loose and wild. Good find there Dogman guess you have to use ESP to make sense of the bugtraq posts on this.

_________________
www.netflake.com
www.glowoptics.com
Find all posts by sixonetonoffunView user's profileSend private message
NukeStyles
Nuke Soldier
Nuke Soldier


Joined: Feb 10, 2003
Posts: 20

Location: USA

PostPosted: Tue Mar 25, 2003 2:53 pm Reply with quoteBack to top

Is there a security problem with the viewpage.php file????? Man, I sure hope not...

Please let me know as soon as possible, and I will post a fix or patch or something on phpnuke.org and my site as well... I wouldn't want to be the cause of some freaking hacking up peoples websites.

Thanks,

Shawn
http://www.NukeStyles.com
Find all posts by NukeStylesView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Mar 25, 2003 2:59 pm Reply with quoteBack to top

NukeStyles wrote:
Is there a security problem with the viewpage.php file????? Man, I sure hope not...

Please let me know as soon as possible, and I will post a fix or patch or something on phpnuke.org and my site as well... I wouldn't want to be the cause of some freaking hacking up peoples websites.

Thanks,

Shawn
http://www.NukeStyles.com

Yes sir, unfortunately. If that snippet up above exists, by placing viewpage.php?file=/etc/passwd Twisted Evil
Find all posts by RavenView user's profileSend private messageVisit poster's website
NukeStyles
Nuke Soldier
Nuke Soldier


Joined: Feb 10, 2003
Posts: 20

Location: USA

PostPosted: Tue Mar 25, 2003 3:09 pm Reply with quoteBack to top

Well hell... what should I do then? Tell everyone to ditch the file? Or is there a fix somewhere???

Damn! Sad

Any help would be appreciated... I'm still a noob to php kinda, and not good with security as these cops are...

Shawn
Find all posts by NukeStylesView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Mar 25, 2003 3:13 pm Reply with quoteBack to top

NukeStyles wrote:
Well hell... what should I do then? Tell everyone to ditch the file? Or is there a fix somewhere???

Damn! Sad

Any help would be appreciated... I'm still a noob to php kinda, and not good with security as these cops are...

Shawn

Well, I have no idea what your scripts do Sad . Most scripts that have this kind of code do not allow a / to be prepended to the filename. Some restrict to the current directory by prepending a ./ . Others make sure no ../ or ./ is allowed. If I was familiar with your scripts I could be more definitive.

You might also read this:
http://www.php.net/manual/en/security.filesystem.php
Find all posts by RavenView user's profileSend private messageVisit poster's website
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Tue Mar 25, 2003 3:20 pm Reply with quoteBack to top

Add slashes would help with the path being added but you will most likely find it better to do something like this too. Not tested no clue what the script does other then open a file. Maybe chatserv, ZX or AI would have a better informed suggestion. Anyway it doesn't appear to be any validation of what $file is so you need to filter user input somehow.
include strip_tags(add_slashes(check_html(($file, nohtml))));

Overkill??????

_________________
www.netflake.com
www.glowoptics.com
Find all posts by sixonetonoffunView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Mar 25, 2003 3:28 pm Reply with quoteBack to top

Without trying to make any bad comments about NukeStyle's scripts i find it unfair for them to categorize this as a PHP-Nuke problem - period - If they did mention it was part of a third party addon then it would be ok but chances are they didn't thus making it look as if FB had another bug on his program.

Now regarding that code, NukeStyles, on which of your scripts is that present? on all? The way it is written now it is making a generic call to a $file variable which could be made to pass the variable as any file, i would guess some checking should be added to the snippet to limit the files it can access or the directory to which it is authorized to access, i believe you'll be able to get a few suggestions right here.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Mar 25, 2003 3:36 pm Reply with quoteBack to top

The posters to Bugtraq did not. I sent a reply to the latest poster (2 hours ago) but it hasn't (yet) been posted. I suggested that very possibility - asking him if he was sure he wasn't using an addon.
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.754 Seconds - 377 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::