Topics

User Functions

Events

There are no upcoming events

What's New

Stories

1 new Stories in the last 2 weeks

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 25 2013 @ 12:10 PM EDT


 Forum Index > Support > Installation Support New Topic Post Reply
 Security Check Error
   
1PLM
 01/14/11 03:09AM (Read 1064 times)  
+++--
Chatty

Status: offline


Registered: 07/11/08
Posts: 39
I have an old site with Geeklog 1.6 installed. At the time of Install I copied the Contents of Public_html into the same directory (root) as the rest of the Geeklog files. I just ran a site security check from the ADMIN Panel, and I got the following Security update info about my site. Is the message generated because of all the Geeklog files I put in the root directory? If not- How do I correct the error Or it is NOT an error at all? Thanks. Below is the Message:

Results of the Security Check

Good! You seem to have removed the install directory already.
Your db-config.php is reachable from the web.
This is a security risk and should be fixed!
Good! Your logs directory is not reachable from the web.
Good! Your plugins directory is not reachable from the web.
Your system directory is reachable from the web.
This is a security risk and should be fixed!
Your backups directory is reachable from the web.
This is a security risk and should be fixed!
Your data directory is reachable from the web.
This is a security risk and should be fixed!
Good! You seem to have changed the default account password already.
Please fix the above issues before using your site!

 
Profile Email
 Quote
Roccivic
 01/14/11 08:29AM  
MMMMM
Moderator

Status: offline


Registered: 05/19/10
Posts: 136
This is not really an error, it's a warning about a security risk. If you leave the site as it is, someone may be able to easily hack it.

The problem is that you put all the files into a directory that can be reached from the internet via the http protocol. Things may differ between hosting providers, but generally you would get a folder that can be accessed via ftp, but not via http. For example, on my web server the root ftp folder is not accessible from the web, so this is where I would place my geeklog install.

 
Profile Email
 Quote
Dirk
 01/14/11 03:00PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
What Roccivic said ...

If you can't put files outside of your webroot, then our recommendation is to have all those files inside a password-protected directory.

In your case, you could password-protect some of the directories (the ones you get warnings for), but your db-config.php would still be accessible. It's not an immediate problem as long as the server is configured correctly but not really recommended.

bye, Dirk

 
Profile Email Website
 Quote
1PLM
 01/14/11 06:59PM  
+++--
Chatty

Status: offline


Registered: 07/11/08
Posts: 39
When I tried accessing the folders via http it denies access."Forbidden You don't have permission to access /system/ on this server." and same for the other files.
However,do I create a Directory and CHMOD it 755 for permissions and then put the aforementioned files into it? How then will they be located by the Index.php and other files looking for them in the root directory? Does Geeklog install not recommend we put the contents of public_html in the root directory with/alongside the other files and folders? Thanks.

 
Profile Email
 Quote
Dirk
 01/15/11 03:40AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
There's no index.php or index.html in "system", so that's why you're getting that message. Try the name of an existing file, e.g. system/lib-custom.php

As explained in the installation instructions, Geeklog consists of two parts: The one that goes into public_html (or equivalent) and is meant to be reachable by typing URLs into a browser. And the other (including system, db-config.php, etc.) that should not be accessible from the web.

Geeklog's configuration has two path variables that point to these two parts, $_CONF['path_html'] for the former and $_CONF['path'] for the latter. If both are set correctly, the site will work just fine, no matter where those two parts are located.

The safest (and recommended) solution is to put the "secret" parts outside of the webroot, so that they can never be reached from the web. If that's not possible, e.g. due to restrictions imposed by your web hoster, then the second-best option is the one decribed in the FAQ (see above), i.e. put all that stuff in a password-protected directory. Geeklog will read those files via the file system, not the web, so the password protection will keep visitors from accessing the files while Geeklog itself can access them just fine.

bye, Dirk

 
Profile Email Website
 Quote
1PLM
 01/15/11 03:49AM  
+++--
Chatty

Status: offline


Registered: 07/11/08
Posts: 39
Thanks. This is very beneficial and insightful.

 
Profile Email
 Quote
Content generated in: 1.19 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content