| Author |
Message |
revspalding
Premium


Joined: Jan 31, 2003
Posts: 125
Location: Badlands of NW Colorado
|
Posted:
Fri Jan 31, 2003 4:27 pm |
  |
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? |
|
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Fri Jan 31, 2003 4:32 pm |
  |
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] |
|
     |
 |
revspalding
Premium


Joined: Jan 31, 2003
Posts: 125
Location: Badlands of NW Colorado
|
Posted:
Sat Feb 01, 2003 10:16 am |
  |
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. |
|
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sat Feb 01, 2003 10:52 am |
  |
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] |
|
     |
 |
revspalding
Premium


Joined: Jan 31, 2003
Posts: 125
Location: Badlands of NW Colorado
|
Posted:
Mon Feb 03, 2003 6:31 am |
  |
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... |
|
    |
 |
uglymonk
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15
Location: USA
|
Posted:
Mon Feb 03, 2003 11:17 am |
  |
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. |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon Feb 03, 2003 11:44 am |
  |
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 |
|
|
   |
 |
uglymonk
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15
Location: USA
|
Posted:
Mon Feb 03, 2003 12:05 pm |
  |
Does it atleast help keep em from gettin my database pass? |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon Feb 03, 2003 12:12 pm |
  |
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 |
|
|
   |
 |
uglymonk
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15
Location: USA
|
Posted:
Mon Feb 03, 2003 12:29 pm |
  |
So this Brazilian problem, is it only an issue if you have the nukebrowser? |
|
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Mon Feb 03, 2003 12:35 pm |
  |
| 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] |
|
     |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Mon Feb 03, 2003 12:36 pm |
  |
|
     |
 |
uglymonk
Nuke Soldier


Joined: Jan 30, 2003
Posts: 15
Location: USA
|
Posted:
Mon Feb 03, 2003 12:42 pm |
  |
can anaylize tell what version of apache my webhost is runnung? if not where can i find out? |
|
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Mon Feb 03, 2003 3:26 pm |
  |
I can include that in the next release. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
|
|