Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 7:44 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 175 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
Posted: Thu Dec 14, 2006 2:25 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Ah! Time for me to start learning 1.5!

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Thu Dec 14, 2006 4:10 am 
Joomla! Hero
Joomla! Hero
Offline

Joined: Sun Aug 28, 2005 5:03 pm
Posts: 2404
I could be wrong though...I'm waiting for the RC myself before I play...

I'm not sure the FTP layer extends into the reading of files. It may only work on the writeing of files...
But it should be easy to add that to the reads as well...


Top
  E-mail  
 
Posted: Thu Dec 14, 2006 9:01 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
Asphyx wrote:
I could be wrong though...I'm waiting for the RC myself before I play...

I'm not sure the FTP layer extends into the reading of files. It may only work on the writeing of files...
But it should be easy to add that to the reads as well...


JFTP was only built to write files to the filesystem, not read them.  It was done that way for speed, HTTP reads are much quicker than FTP reads.

I was wrong, I double checked and it can read... I thought I remember being told different... oh well :)

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Last edited by RobS on Thu Dec 14, 2006 9:57 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Thu Dec 14, 2006 9:47 pm 
Joomla! Hero
Joomla! Hero
Offline

Joined: Sun Aug 28, 2005 5:03 pm
Posts: 2404
Thanks Rob, I wasn't sure if you were simply telling PHP to operate under the FTP account or was using another app to write that used it.
I suppose a chgrp of the www group and chmod of 640 would get the same result though do you think?


Top
  E-mail  
 
Posted: Thu Dec 14, 2006 9:56 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
Actually, I was talking about the FTP library in Joomla! 1.5.  It is called JFTP.  And, actually, I was wrong.  I just checked and Joomla!'s FTP system is capable of reading via FTP as well.

_________________
Rob Schley - Open Source Matters
Webimagery - http://www.webimagery.net/ - Professional Consulting Services
JXtended - http://www.jxtended.com/ - Free and Commercial Joomla! Extensions


Top
  E-mail  
 
Posted: Thu Dec 14, 2006 11:11 pm 
Joomla! Hero
Joomla! Hero
Offline

Joined: Sun Aug 28, 2005 5:03 pm
Posts: 2404
Ok to clarify....Just cause I am very curious about this...

It can read via FTP the protocall or use the account to read via http?

I hope it's the latter it would really allow us to lock down the security in a major way...


Top
  E-mail  
 
Posted: Tue Jan 02, 2007 1:50 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Revision 1.3: Added the following item with a link to a new Security FAQ.
Quote:
Restrict access to sensitive directories by IP Address, using .htaccess.

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Last edited by rliskey on Thu Jan 11, 2007 7:46 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Thu Jan 11, 2007 7:45 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Revision 1.4: Updated the SSL section and added a link to a great forum discussion.

  • 8.2: Use an SSL server for confidential transactions. Read this enlightening discussion on the need for SSL any time security is important. (Note that Joomla! version 1.0.11 does not allow you to assign an SSL server to individual sub-directories. Can someone tell me if 1.0.12 changes this?) [FAQ]

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Sat Jan 13, 2007 8:44 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Revision 1.5: Added a few more links to Joomla! 1.5 info.


  • 2.1. Decide if Joomla! is right for you. Developers of very large projects may want to read this discussion. NEW!

  • 2.2: If you're a developer, prepare for the approaching release of Joomla! 1.5, the most significant upgrade in Joomla!'s history. NEW!

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Thu Feb 22, 2007 7:37 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Minor addition...

  • 9.14: Learn all you can about security software: Sadly, there's no one tool that you can install to protect your site. If there were, it would be so heavily targeted that it would probably become a liability. Related topicNEW!

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Fri Mar 02, 2007 6:56 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Feb 28, 2007 8:27 am
Posts: 1
As a newbie to the security checklist I have worked my way through all steps until 5.11 (Configure Apache mod_security and mod_rewrite filters to block PHP attacks) now. About this one I have no clue what to do. Does somebody know a forumthread/FAQ where its discussed? Any help and hints are very appreciated.

Thank you very much!
Tilman


Top
   
 
Posted: Sat Mar 03, 2007 8:25 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
More info on mod_security
http://www.google.com/search?q=apache%20mod_security

More info on mod_rewrite
http://www.google.com/search?q=apache%20mod_rewrite

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Sun Mar 11, 2007 3:13 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jan 24, 2007 7:05 pm
Posts: 4
Hi Rliskey,
I came here searching where to post 'Thanks' to you.

"Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * PHP magic_quotes_gpc setting is `OFF` instead of `ON`
    * Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
      `ON` by default for compatibility reasons"


I got a security alert with your article
I am dumb in the web tech matters.
I am not into software, I am a medical health care professional.

Since the web designer was not available I was tinkering thru the insides myself.
I did not understand much of what you had to convey,
but I was eager  :)

[GLOBAL MOD EDIT: Signatures belong in the signature section of your "Profile" - ChiefGoFor]
[GLOBAL MOD EDIT: Self Promotion Text removed - ChiefGoFor]


Last edited by ChiefGoFor on Wed Mar 14, 2007 12:26 pm, edited 1 time in total.

Top
   
 
Posted: Sun Mar 11, 2007 3:28 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Jan 24, 2007 7:05 pm
Posts: 4
Hi rliskey,

You have provided a comprehensive thorough 11 point tutorial.

I feel a bit embarrassed, because I am like the second grade level student in web matters.
However, web matters.
My queries may be too elementary.
I am skipping them.
We will meet again as I grow.


In case you have not already received, here again I express
:)SPECIAL Thanks to you and all those working for Joomla :D

I appreciate your professionalism.

[GLOBAL MOD EDIT: Signatures belong in the signature section of your "Profile" - ChiefGoFor]
[GLOBAL MOD EDIT: Self Promotion Text removed - ChiefGoFor]


Last edited by ChiefGoFor on Wed Mar 14, 2007 12:41 pm, edited 1 time in total.

Top
   
 
Posted: Sun Mar 11, 2007 11:06 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Mar 05, 2007 12:33 pm
Posts: 7
Hi, I am new to php and Joomla, but have recently installed the last version of the system. Looks very nice and fairly easy to handle. In the security section I am advised to change the setting in the file globals.php in order to improve security.

I would like to ask developers to make the requested change for next version of Joomla since it is not very easy for a newbie like myself to understand how to make the changes necessary.

In the checklist it says:

Here's the correct setting for turning Joomla!'s Register Globals Emulation OFF in the file globals.php:
Quote
define( 'RG_EMULATION', 0 );

How am I supposed to know where to put this line in the file? I just wonder since I myself I have absolutely no clue. :-)

The original section about emulation in the globals.php file looks like this:
if (RG_EMULATION == 0) {
// force register_globals = off
unregisterGlobals();
} else if (ini_get('register_globals') == 0) {
// php.ini has register_globals = off and emulate = on
registerGlobals();
} else {
// php.ini has register_globals = on and emulate = on
// just check for spoofing
checkInputArray( $_FILES );
checkInputArray( $_ENV );
checkInputArray( $_GET );
checkInputArray( $_POST );
checkInputArray( $_COOKIE );
checkInputArray( $_SERVER );

if (isset( $_SESSION )) {
checkInputArray( $_SESSION );
}
}


Where should I include the line define( 'RG_EMULATION', 0 );?
Should this new line replace all of the above, part of it, or just be included whereever?

Cheers,
Lars


Top
  E-mail  
 
Posted: Mon Mar 12, 2007 5:40 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11690
Location: **Translation Matters**
Look at the top of the file
Quote:
/**
* @version $Id: globals.php 4675 2006-08-23 16:55:24Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software and parts of it may contain or be derived from the
* GNU General Public License or other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

/**
* Use 1 to emulate register_globals = on
* WARNING: SETTING TO 1 MAY BE REQUIRED FOR BACKWARD COMPATIBILITY
* OF SOME THIRD-PARTY COMPONENTS BUT IS NOT RECOMMENDED
*
* Use 0 to emulate regsiter_globals = off
* NOTE: THIS IS THE RECOMMENDED SETTING FOR YOUR SITE BUT YOU MAY
* EXPERIENCE PROBLEMS WITH SOME THIRD-PARTY COMPONENTS
*/
define( 'RG_EMULATION', 0 );

/**
* Adds an array to the GLOBALS array and checks that the GLOBALS variable is
* not being attacked
* @param array
* @param boolean True if the array is to be added to the GLOBALS
*/
function checkInputArray( &$array, $globalise=false ) {
static $banned = array( '_files', '_env', '_get', '_post', '_cookie', '_server', '_session', 'globals' );
[...]

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Tue Mar 13, 2007 9:33 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Mar 05, 2007 12:33 pm
Posts: 7
Thanks for the quick reply! :-)


infograf768 wrote:
Look at the top of the file
Quote:
/**
* @version $Id: globals.php 4675 2006-08-23 16:55:24Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software and parts of it may contain or be derived from the
* GNU General Public License or other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

/**
* Use 1 to emulate register_globals = on
* WARNING: SETTING TO 1 MAY BE REQUIRED FOR BACKWARD COMPATIBILITY
* OF SOME THIRD-PARTY COMPONENTS BUT IS NOT RECOMMENDED
*
* Use 0 to emulate regsiter_globals = off
* NOTE: THIS IS THE RECOMMENDED SETTING FOR YOUR SITE BUT YOU MAY
* EXPERIENCE PROBLEMS WITH SOME THIRD-PARTY COMPONENTS
*/
define( 'RG_EMULATION', 0 );

/**
* Adds an array to the GLOBALS array and checks that the GLOBALS variable is
* not being attacked
* @param array
* @param boolean True if the array is to be added to the GLOBALS
*/
function checkInputArray( &$array, $globalise=false ) {
static $banned = array( '_files', '_env', '_get', '_post', '_cookie', '_server', '_session', 'globals' );
[...]



Top
  E-mail  
 
Posted: Mon Mar 26, 2007 6:34 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Mar 26, 2007 6:23 pm
Posts: 1
Could someone please elaborate on item 5.16:

Quote:
5.16: Ensure that all configurable paths to world writable directories (images, galleries, caches, etc.) are outside Web root. Check third party extensions, such as DOCMan and Gallery2, for editable path variables.


What exactly does this mean, and how to do it?  I understand how to move  the cache out of the Web root, but the 'images' directory? 

Thanks.
Stephen.


Top
   
 
Posted: Tue Mar 27, 2007 12:09 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Mar 26, 2007 5:11 pm
Posts: 7
can u tell me where i can write commands to change register globals to off. as u can see i really dont know what to do but i am determined to install joomla, 2 days on it without results. thanks maggie  ???


Top
  E-mail  
 
Posted: Thu Apr 05, 2007 4:51 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Quote:
What exactly does this mean, and how to do it?  I understand how to move  the cache out of the Web root, but the 'images' directory?


You're right, given the current Joomla! design, it would be hard to move the Joomla! "images" directory outside of web_root. What you did with the cache directory is exactly what I meant. Some extensions that provide file upload functions will provide a setting for moving their "image" directories outside of web_root. I was referring to this.

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Thu Apr 05, 2007 5:42 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Quote:
can u tell me where i can write commands to change register globals to off.


The security FAQs are getting moved to the documentation site. In the meantime, the following link might help.
http://www.ronliskey.com/index.php?opti ... &Itemid=66

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Mon May 21, 2007 1:06 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Revision 2.0: The Joomla! Administrator's Security Checklist has become a FAQ, in the official Joomla! Help Site.

This new location allows us to expand the information to support more experience levels and server configurations.

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Last edited by rliskey on Mon May 21, 2007 1:07 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon May 21, 2007 1:23 am 
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Aug 12, 2005 7:19 am
Posts: 4471
Location: Leeds, UK
Looks good but how do you get to it from the menus

I tried looking in Secure Site Administration



EDIT doh sillyme it was in the first security section


Top
  E-mail  
 
Posted: Mon May 21, 2007 4:22 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Yep, I think I need to reorganize the FAQ categories a little. Maybe more along the lines of the way the checklist is categorized. What do you think?

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Fri Aug 10, 2007 2:33 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Added the following note under the Installation Section:

Before upgrading to Joomla! 1.0.13, read this forum thread discussing incompatible extensions.

This version of Joomla! includes more powerful password encryption functions that break backward compatibility with important extensions that rely on the earlier password format. This includes CommunityBuilder, VirtueMart, and many of the bridges.

_________________
Web Home: http://www.ronliskey.com
Support http://support.educationgrove.com


Top
  E-mail  
 
Posted: Thu Sep 06, 2007 11:01 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 30, 2007 12:38 am
Posts: 6
Location: Phx Az
eyezberg wrote:
Thanks rliskey,
I understand how this list was meant and appreciate you doing this, its just as you say: reading it leaves you somewhat worried as to what and how to do. And hiring a security expert for a personal site is not really an option..
So I do hope there are some experts willing to contribute a few more details/ links to post with how-tos or other explanations.
thanks


I agree with you on your suggestion and would welcome even a brief summery on each of those topics mentioned. Thank you

_________________
Wendy Johnson


Top
   
 
Posted: Fri Sep 07, 2007 12:54 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 30, 2007 12:38 am
Posts: 6
Location: Phx Az
Hi sorry if this is off the topic a little, but I have installed Joomla! onto my godaddy deluxe shared hosting plan and as I didn't install manually since godaddy has an automatic one set up now for users, I couldn't configure the settings appropriately. I have read a post from someone explaining how to manually install joomla and that was great, but it refers to a pre-installation check with configurations that are needed to run joomla yet I have no access to the config. page, or rather, I don't understand how to access it to set these configs. When I log into my joomla admin page I get a message in red

      (Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
      `ON` by default for compatibility reasons)

So I'm assuming I need to change that somehow, but when I contacted godaddy and asked where these settings could be found they said I couldn't get to them. -frustrated sigh-
He did tell me that what I had to do was set up a php .ins file to utilize as a means to access changes. I have no idea what that is or how to do it, and he couldn't really tell me either. Can anyone offer me some help on this. I'm so new to all of this, but I learn quick. Thank you.

_________________
Wendy Johnson


Top
   
 
Posted: Fri Sep 07, 2007 6:56 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jan 17, 2006 1:09 pm
Posts: 396
Location: London, UK
wendell69 wrote:

      (Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
      `ON` by default for compatibility reasons)

So I'm assuming I need to change that somehow, but when I contacted godaddy and asked where these settings could be found they said I couldn't get to them. -frustrated sigh-


In 1.0.13 this is now just a checkbox on the server tab of the Joomla! configuration option.

_________________
Andrew998
http://www.inchhosting.co.uk - Website Design and Hosting


Top
  E-mail  
 
Posted: Fri Sep 07, 2007 8:20 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 30, 2007 12:38 am
Posts: 6
Location: Phx Az
Andrew998 wrote:
wendell69 wrote:

      (Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
      `ON` by default for compatibility reasons)

So I'm assuming I need to change that somehow, but when I contacted godaddy and asked where these settings could be found they said I couldn't get to them. -frustrated sigh-


In 1.0.13 this is now just a checkbox on the server tab of the Joomla! configuration option.


I'm sorry, I don't understand, but I think you mean I can change the config inside the joomla admin area? Good, because I was really stressing out about that. I'm so new to all of this.-chuckle- I'm glad I asked instead of just trying to  struggle through it like I have always done with most things. Thanks, at least I have some direction now in which to go on.....

_________________
Wendy Johnson


Top
   
 
Posted: Fri Sep 07, 2007 10:08 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jan 17, 2006 1:09 pm
Posts: 396
Location: London, UK
wendell69 wrote:
Andrew998 wrote:
wendell69 wrote:

      (Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php
      `ON` by default for compatibility reasons)

So I'm assuming I need to change that somehow, but when I contacted godaddy and asked where these settings could be found they said I couldn't get to them. -frustrated sigh-


In 1.0.13 this is now just a checkbox on the server tab of the Joomla! configuration option.


I'm sorry, I don't understand, but I think you mean I can change the config inside the joomla admin area? Good, because I was really stressing out about that. I'm so new to all of this.-chuckle- I'm glad I asked instead of just trying to  struggle through it like I have always done with most things. Thanks, at least I have some direction now in which to go on.....


In the back end of Joomla choose the "Global Configuration" option on the control panel. Then choose the "Server" tab and the Register Globals (RG = Register Globals) option is at the bottom of the page.

_________________
Andrew998
http://www.inchhosting.co.uk - Website Design and Hosting


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 175 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

Quick reply

 



Who is online

Users browsing this forum: No registered users and 22 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group