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, 49 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 - Saving config.php in a non web directory [ ]
 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
revspalding
Premium
Premium


Joined: Jan 31, 2003
Posts: 125

Location: Badlands of NW Colorado

PostPosted: Fri Jan 31, 2003 4:27 pm Reply with quoteBack to top

I read about the "boys from brazil" hacking nuke sites and the vulnerability of the config.php file in this hacking of nuke sites. Could saving the config.php file in a non web viewable directory increase site security, and if I save it in a private directory what files do I have to modify?
Find all posts by revspaldingView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Jan 31, 2003 4:32 pm Reply with quoteBack to top

If you do move it you will have to modify pretty much all of Nuke's files. That's just a 'guess' right now. If you have Nuke 6.0 or higher, then the file doesn't need to have write permission.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
revspalding
Premium
Premium


Joined: Jan 31, 2003
Posts: 125

Location: Badlands of NW Colorado

PostPosted: Sat Feb 01, 2003 10:16 am Reply with quoteBack to top

Would saving the config.php file in a nonweb directory prevent the hack that these 'boys from brazil' did, that compromised the database information?

As far as editing all of the nuke files, I looked at admin.php and noticed that this file, as well as all of the other ones I checked in the root directory of nuke, (I didn't check all of them), had a line of:

require_once ("mainfile.php");

and mainfile.php has the line:

require_once("config.php");

So it would seem to me, (and I'm the first to admit my coding shortcomings and lack of real in depth research into all of the files) that if you changed the require_once("config.php") in mainfile.php, to point to a non web directory, that it would be included into the rest of the routines through that require statement in mainfile.php.
That's the reason I asked the experts, to save the time looking through all of the code.
It concerns me because access to config.php also accesses the user name and password to the database. That could lead to some serious compromises in security.
The NSNCart program, currently under development, saves bank routing information and credit card info unencrypted in the database, and before I use this module and put any customer's information in the database, I want to make sure that it is as secure as it can be. Or I will be searching for some other means of e-commerce. We'll wait and see. NSN advised that encryption is on their development list for the Cart Program.
Appreciate the quick response, and hope someone has the answer to whether or not saving the config.php file will prevent this recent hack.
Find all posts by revspaldingView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Feb 01, 2003 10:52 am Reply with quoteBack to top

You certainly should wait for a well established encrypted shopping cart system. I'm a big buff on security, but I'm not willing to put the time and effort in dealing with that kind of sensitive data. I'm sure you read occasionnaly that even big ecommerce sites get hacked into.

As for moving the config.php to a non web dir and having it work... would that really stop someone from accessing the file if the server is still able to?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
revspalding
Premium
Premium


Joined: Jan 31, 2003
Posts: 125

Location: Badlands of NW Colorado

PostPosted: Mon Feb 03, 2003 6:31 am Reply with quoteBack to top

No, I realize that someone with server priveleges would still be able to look, it's just that it would reduce the numbers by 10 to the 7th. Francisco mentioned it in one of the installation documents, but I just haven't found much information on any of the Nuke support sites about someone doing it, or what would be required.

_________________
When the blind lead the blind, they both fall in the ditch...
Find all posts by revspaldingView user's profileSend private messageVisit poster's website
uglymonk
Nuke Soldier
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15

Location: USA

PostPosted: Mon Feb 03, 2003 11:17 am Reply with quoteBack to top

if you make a config.php file with only this in it:

<?php include("/pathto/nonweb/config.php"); ?>

put your real config the path specified, and this config in your nuke folder.

I havent tried relative paths but i suppose they would work just as well.

<?php include("../../nonwebfolder/config.php"); ?>

Im not sure to what degree I am more secure like this but every little bit helps.
Find all posts by uglymonkView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Feb 03, 2003 11:44 am Reply with quoteBack to top

ur not any more secure with that method than actually having hte config.php in the root, cause if the hackers hack ur site and replace that file, ur still gonna have problems.

Artificialintel
Find all posts by ArtificialIntelView user's profileSend private message
uglymonk
Nuke Soldier
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15

Location: USA

PostPosted: Mon Feb 03, 2003 12:05 pm Reply with quoteBack to top

Does it atleast help keep em from gettin my database pass?
Find all posts by uglymonkView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon Feb 03, 2003 12:12 pm Reply with quoteBack to top

they can't get it anyway cause if u try to access that file directly, it just directs u to the index.php file, so they get nothin

Artificialintel
Find all posts by ArtificialIntelView user's profileSend private message
uglymonk
Nuke Soldier
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15

Location: USA

PostPosted: Mon Feb 03, 2003 12:29 pm Reply with quoteBack to top

So this Brazilian problem, is it only an issue if you have the nukebrowser?
Find all posts by uglymonkView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Feb 03, 2003 12:35 pm Reply with quoteBack to top

uglymonk wrote:
Does it atleast help keep em from gettin my database pass?
AI is right. Best bet is to actually install this into your .htaccess file:

<Files ~ "\config.php$">
deny from all
</Files>

That will not allow the file to be called from the browser.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Feb 03, 2003 12:36 pm Reply with quoteBack to top

uglymonk wrote:
So this Brazilian problem, is it only an issue if you have the nukebrowser?
Not only nukebrowser related, read this:

http://www.computercops.biz/article2088.html&mode=flat&order=0&thold=0

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
uglymonk
Nuke Soldier
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15

Location: USA

PostPosted: Mon Feb 03, 2003 12:42 pm Reply with quoteBack to top

can anaylize tell what version of apache my webhost is runnung? if not where can i find out?
Find all posts by uglymonkView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Feb 03, 2003 3:26 pm Reply with quoteBack to top

I can include that in the next release.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit 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.469 Seconds - 314 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::