Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 6: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
Author Message
Posted: Fri Sep 07, 2007 10:18 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:
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.


Oh thank you

_________________
Wendy Johnson


Top
   
 
Posted: Fri Sep 14, 2007 2:27 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Sep 06, 2007 6:55 pm
Posts: 1162
Location: Stockholm, Sweden
Number 5.6 ("Increase the security of the all-critical configuration.php file by moving it outside of public_html") is linked to Joomla Diagnostics, which isn't related to the topic as far as I know (Joomla Diagnostics is number 5.4).

_________________
http://www.alltomfalafel.se/ | Allt om falafel – inget om kebab


Top
  E-mail  
 
Posted: Sat Oct 20, 2007 9:58 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Feb 18, 2007 12:03 am
Posts: 11
Location: Glendale, Arizona USA
Great discussions here guys...

_________________
"Youth and skill are NO MATCH for old age and treachery"


Top
   
 
Posted: Sat Oct 27, 2007 10:51 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Quote:
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.


Looks like others already gave the advise needed for J1.0.13, but just to be clear, the above advise from GoDaddy is wrong. No need for any PHP hacking. RG_EMULATION is a Joomla-specific setting, and as of J1.0.13 can be set in the back end global settings.

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


Top
  E-mail  
 
Posted: Sat Oct 27, 2007 10:55 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
felham wrote:
Number 5.6 ("Increase the security of the all-critical configuration.php file by moving it outside of public_html") is linked to Joomla Diagnostics, which isn't related to the topic as far as I know (Joomla Diagnostics is number 5.4).


Fixed that pesky random link. Thanks for pointing it out. The FAQ link at the end of that item was/is correct.

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


Top
  E-mail  
 
Posted: Mon Nov 19, 2007 5:23 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Nov 19, 2007 4:50 pm
Posts: 2
Location: Vietnam
Tool "File Ihcluder" - PHP Injection vul.
For more info, read this thread: http://forum.joomla.org/index.php/topic,234997.0.html

_________________
You are not 555, but I am 666 \m/


Top
  E-mail  
 
Posted: Wed Dec 12, 2007 9:49 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Dec 11, 2007 10:02 pm
Posts: 3
I am attempting to change the RG_Emulation setting.  I have gone to the server tab of the Global configuration and I do not have the Register Globals (RG = Register Globals) option at the bottom of the page. Can someone please help me?


Top
  E-mail  
 
Posted: Wed Dec 12, 2007 10:07 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jan 17, 2006 1:09 pm
Posts: 396
Location: London, UK
Sounds like you aren't running the latest version (1.0.13). Older versions don't have this option.

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


Top
  E-mail  
 
Posted: Sun Dec 16, 2007 3:35 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Dec 16, 2007 3:31 am
Posts: 1
The Register Globals Emulation for my site is already "OFF - more secure and the preferred setting".

However, I still see this message near the bottom of every Administration page:
Quote:
Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * PHP register_globals setting is `ON` instead of `OFF`

Please check the Official Joomla! Server Security post for more information.


How to correct this?


Top
  E-mail  
 
Posted: Sun Dec 16, 2007 12:47 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Mar 01, 2007 1:37 pm
Posts: 51
Location: Alicante
clappingtree wrote:
The Register Globals Emulation for my site is already "OFF - more secure and the preferred setting".

However, I still see this message near the bottom of every Administration page:
Quote:
Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * PHP register_globals setting is `ON` instead of `OFF`

Please check the Official Joomla! Server Security post for more information.


How to correct this?



Yep, me too. 


Top
  E-mail  
 
Posted: Sun Dec 16, 2007 1:52 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jan 17, 2006 1:09 pm
Posts: 396
Location: London, UK
clappingtree wrote:
The Register Globals Emulation for my site is already "OFF - more secure and the preferred setting".

However, I still see this message near the bottom of every Administration page:
Quote:
Following PHP Server Settings are not optimal for Security and it is recommended to change them:

    * PHP register_globals setting is `ON` instead of `OFF`

Please check the Official Joomla! Server Security post for more information.


How to correct this?


You (or your host) must be overriding the Joomla setting. Try checking you php.ini file and see if you have the line "register_globals = on" in it.

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


Top
  E-mail  
 
Posted: Sun Dec 16, 2007 4:24 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Mar 01, 2007 1:37 pm
Posts: 51
Location: Alicante
When the "Register Globals Emulation is ON" warning message started appearing - I had just installed a new Component. I don't know if the two are related.
I checked in this thread for info and was pointed to the php.ini file.

I have a php.ini file in every single directory and sub directory of my joomla site - I really don't think that they were there originally.
Each php.ini file shows  "register_globals = On"

I have set register_globals to Off in the php.ini file within the  /public_html/administrator/  directory  and this change has resulted in the Globals warning message no longer showing on every admin page.

I don't know if this has truly fixed the problem or simply disguised a nasty outcome from a component install.

Any thoughts welcome


Top
  E-mail  
 
Posted: Sun Dec 16, 2007 11:22 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Jan 17, 2006 1:09 pm
Posts: 396
Location: London, UK
Well it isn't good enough to simply change the php.ini in one directory. Personally I'd get rid of them all except the root directory and make sure that's a good php.ini file. Have you checked the component against the Vulnerable Extensions list (http://help.joomla.org/component/option ... temid,268/).

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


Top
  E-mail  
 
Posted: Mon Dec 17, 2007 7:28 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Jul 23, 2006 2:36 am
Posts: 78
Hi


Try this at the end of your .htaccess file.  I found this somewhere in the forum.  I placed this on all my Joomla sites.  I don't know if there is any way of checking the site if it works except for the message was turned off at the bottom of the Administration page.

php_flag register_globals off


Take Care,
SZ


Top
  E-mail  
 
Posted: Mon Dec 17, 2007 9:31 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Mar 01, 2007 1:37 pm
Posts: 51
Location: Alicante
SZippy wrote:
Hi


Try this at the end of your .htaccess file.  I found this somewhere in the forum.  I placed this on all my Joomla sites.  I don't know if there is any way of checking the site if it works except for the message was turned off at the bottom of the Administration page.

php_flag register_globals off



This change just gives me 500 errors.

Andrew998 - thanks for the vulnerable extensions, hadn't come across that before but no pointers there as versions seem fine on my site.
I had already changed the php.ini in the root dir but that did not get rid of the warning message in admin. It was only the php.ini in /public_html/administrator/  that made the difference.

I am unsure about removing php.ini elsewhere - what does it do and what uses it ?

The site this is happening on is a family one and so pretty low key - I can potter around with possible solutions for ages so any suggestions welcome.

thanks
mummy


Top
  E-mail  
 
Posted: Mon Dec 17, 2007 10:06 am 
Joomla! Explorer
Joomla! Explorer
Offline

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


Try this at the end of your .htaccess file.  I found this somewhere in the forum.  I placed this on all my Joomla sites.  I don't know if there is any way of checking the site if it works except for the message was turned off at the bottom of the Administration page.

php_flag register_globals off



This change just gives me 500 errors.


You don't need this. It is being dealt with in php.ini and by Joomla.
mummygeek_spain wrote:

Andrew998 - thanks for the vulnerable extensions, hadn't come across that before but no pointers there as versions seem fine on my site.
I had already changed the php.ini in the root dir but that did not get rid of the warning message in admin. It was only the php.ini in /public_html/administrator/  that made the difference.

I am unsure about removing php.ini elsewhere - what does it do and what uses it ?

The site this is happening on is a family one and so pretty low key - I can potter around with possible solutions for ages so any suggestions welcome.

thanks
mummy


I suggested getting rid of all the php.ini except for the root. That way it should work for the whole site. The php.ini file controls the way php works on your site.

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


Top
  E-mail  
 
Posted: Mon Dec 17, 2007 2:25 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Jul 23, 2006 2:36 am
Posts: 78
Hello again

The reason I am using this is due to my sites being on a shared server.  There is no access to the PHP.ini file.  Some hosts do not give you access to the PHP.ini due to others sharing the .ini file.
In our situation it works.  I thought that maybe this would help for those that do not have access to the PHP.ini which would be the proper way of turning off the switch.

Take Care,

SZ


Top
  E-mail  
 
Posted: Mon Jan 07, 2008 1:30 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 07, 2008 10:46 am
Posts: 2
Oops.  :-[


Last edited by cgg on Mon Jan 07, 2008 1:38 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon Jan 07, 2008 1:37 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 07, 2008 10:46 am
Posts: 2
Hey

As a followup on the password scheme... I'm looking for something like this (as much as everyone else here I have a dozen passwords to remember) but I'm a little concerned about a thing. I'm sorry if this sounds newbish, I'm not so much of an admin :

LVL2: basically anything from mail accounts to administrative services go here, including sensitive access to the configuration of your web hosting provider, registrar and ISP... My problem is: if, say, your web client software is transmitting your credentials in plaintext, isn't that a problem? If any of the services you fit in this category doesn't make use of ssl for authenticating users, isn't that a problem to submit your all critical password onto the network in plain text?

LVL3: Admin access to the system... Very fine, but again... I assume your admin password to Joomla goes here. Isn't it a problem to transmit the password you use to ssh and sudo into the server in plain text over the network?

Otherwise it's pretty neat, I'm definitely going for something like this.  :)


Asphyx wrote:
I may get flamed for this and maybe I deserve it....LOL

I am not a big fan of telling people to have 10 different passwords they use...
Neither am I a fan of changing these passwords often. Changing on a monthly basis is not really effective as any brute forcing of the password won't take that long. Unless you were changing it on a weekly basis it's effectiveness is limited.

I tell users that they should have no more than 3 levels of Passwords and webmasters no more than 5! And each level must be completely unrelated to the others in terms of what is used.

Level 5 - is the password you use on public sites. It is not imperative that you use a different password on every site. In Fact it's more effective to use a different username on every site than it is to use a different password truth be told! Knowing the username allows easy hacking...half the work is done! knowing the password is useless unless you know what account it goes to!

Level 4 (Webmaster) - Reserved for SQL Only. this is a password that would only be used by SQL and limited to a specific database in SQL. The best way to protect SQL is by limiting each account to just being able to do the minimum that DB requires. In some cases it is even wise to have a read only account for display and a seperate write account that the backend write functions use. But that doesn't apply to J! at all... for J! the best practice is to set up an individual account (not root for sure) that only has read and write access to the J! DB nothing else.

Level 3 (Webmaster) - FTP and Server Access. these can be the same user:pass combo since both if compromised can do the most damage. doesn't matter if the backend or Cpanel is safe if the FTP is not and the same goes the other way!

Level 2 - Personal Data Access. this password should be used for any sites or locations that contain personal data with the exception of Banking (see level 1). these sites are often used for social engineering data such as medical records, service accounts and any financial records not directly related to banking! You want these to be secure but also different from the real threat of security...your money!

Level 1 - Banking! this needs to be the most secure in fact if you have two different banks it actually pays to have a different user:pass for each just to be sure!

Ok that was a bit off topic but it does explain a bit about how webmasters should compartmentalize their security.




Top
  E-mail  
 
Posted: Sat Mar 29, 2008 10:05 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Re: The php.ini files in every directory of your site vs. having one in the root directory. There are a few things to keep in mind.

1) Local php.ini files will only have an effect if your server is configured to use them. This includes a php.ini file in your web_root directory. You can test whether or not these file affect your site by setting an obvious directive in the local php.ini file and seeing if it affects your site. A quick and dirty method is to mess up the local php.ini file and see if that messes up your site.

2) Local php.ini files only have an effect on other .php files that are called from within the same directory. This means that there are only two Joomla directories in which you normally need a php.ini file. They are /web_root/, which is where Joomla's Front-end index.php file is located, and /web_root/administrator/, which is where the Back-end administrator index.php file is located. Other directories that don't have files called via the Web don't need php.ini files.

3) If you have a php.ini file in every directory, some script probably did this. If you didn't intend it to happen, I'd root them out, but given #2 above, you probably only have to panic about the php.ini files in those two directories.

4) There's a free script that will copy a php.ini file into every directory, or remove one from every directory. Here's a link to a version I hacked around with once. No guarantees; been a long time since I used it: http://www.educationgrove.com/component ... Itemid,77/

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


Top
  E-mail  
 
Posted: Sat Mar 29, 2008 7:21 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Jul 10, 2007 5:20 pm
Posts: 97
Hi there

Ijoomla magazine has security vulnerabilities.
already feedback to the dev and stillll waiting for reply from them.

http://www.securityfocus.com/bid/27888/references


Top
  E-mail  
 
Posted: Tue Apr 01, 2008 6:45 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Sun Feb 12, 2006 2:02 pm
Posts: 2726
Location: Durban, South Africa
Hi

I have read that "I would also strongly consider updating all your installs to 1.0.15 and making sure the line

if(!defined('RG_EMULATION')) { define( 'RG_EMULATION', 0 ); }

is in the top of the configuration.php files in all of the installs. The configuration.php is not updated for obvious reasons when updating a Joomla install." (viewtopic.php?f=267&t=273521#p1231497)

If this is true, then the FAQ should include a statement about how to update your configuration.php file by copying the settings.

There are probably other settings found in the newer configuration.php files that are lacking in the old (register globals emulation, itemid behaviour are two that I can think of).

Regards
Brendon

_________________
-----------------------------------
Web developer in Durban, South Africa - http://www.brilliantweb.co.za
Joomla Days in South Africa - http://www.joomladay.co.za


Top
   
 
Posted: Sat May 03, 2008 7:53 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
The Security Checklist is now on the Joomla! Documentation Wiki:
http://docs.joomla.org/Joomla_Administr ... _Checklist

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


Top
  E-mail  
 
Posted: Wed Oct 22, 2008 8:15 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
brian wrote:
Quote:
f you're using a shared hosting provider, be sure other users on your server can't access your site's files. Usually a shell account is required for this level of access.


Sorry but that is just not true. Any good ISP will have set up their sharedhosting system in an environment that prevents other users accessing your files. Shell access is not required. Or did you mean that shell access was required to test for this?


Of course the point here is to be sure you are on a quality shared host. Yes, I meant that shell access is required to test for this. I know you can test with a PHP script as well, but that would likely get you banned from the server, so best not to try.

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


Top
  E-mail  
 
Posted: Wed Oct 22, 2008 8:21 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
I broke the Security Checklist into sections to make it a little less overwhelming. This will also make it easier to edit. ;)

http://docs.joomla.org/Category:Security_Checklist

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


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

Quick reply

 



Who is online

Users browsing this forum: No registered users and 20 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