Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 2:52 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  [ 40 posts ]  Go to page Previous  1, 2
Author Message
Posted: Fri Oct 06, 2006 11:20 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Oct 05, 2006 12:53 pm
Posts: 7
Hi Rob

You are correct it is 'off' by default

Interestingly having amended the .htaccess and renamed it on the server, seemingly satisfactorily, indicated by the removal of the safety warning, by now turning the SEF option 'on' I then get a '404error' when going to the site?

Is this a result of adding the new instruction to the .htaccess file?

Regards

David


Top
  E-mail  
 
Posted: Sat Nov 04, 2006 12:00 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 19, 2005 7:08 pm
Posts: 33
Location: Leeds UK
I think the advise is good and I appreciate it,   but how to implement a solution is a bit vague

For instance
where is php.ini  ? I don’t seem to have one.

Also
Quote:
.htaccess file
On most servers, you can configure the Apache with files with the name .htaccess. These files can not be read from the web! Often you can't just copy such a file on your webspace, but you can rename a file to .htaccess.


What does the above statement mean? "These files can not be read from the web"  well I can read mine, infact I can right click and edit it in my ftp client or download it and change it.

"but you can rename a file to .htaccess" what? rename a file from .htaccess to .htaccess  why, why would anyone do that?

Every line in my .htaccess starts with a #  should I precede the lines below with a # ? because when I don’t my site wont work.
Quote:
php_admin_flag register_globals off
php_admin_flag magic_quotes_gpc on


you say
Quote:
Apache/PHP configuration files outside of your website's folder
If you have access to the configuration files of your server, you can put


What configuration file?   Specifically what are the files called ?

Also if I ask my hosting provider to turn globals off perhaps my joomla site will not work then I will have to raise another ticket to get globals turned back on.


So this is my problem:

I have the following 2 messages in my admin
PHP register_globals setting is `ON` instead of `OFF`
Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php


Also It seems that some people can join my site without actually visiting it
New members have been created Names like “diet pills” and “free ringtones”

When I look at the member details they have no last visited date.

I think register globals thing has something to do with it. but I can not make any sense of this thread or the one it relates to.

The thing is hackers are targetting Joomla and all the help and advice seems to lead to this thread and we need more than one thread for this.


Top
  E-mail  
 
Posted: Sat Nov 04, 2006 12:24 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3652
Location: NRW - Germany
Nomax5 wrote:
For instance
where is php.ini  ? I don’t seem to have one.

I can't tell you where your php.ini is, since this can be located in a hundred places.
Quote:
Also
Quote:
.htaccess file
On most servers, you can configure the Apache with files with the name .htaccess. These files can not be read from the web! Often you can't just copy such a file on your webspace, but you can rename a file to .htaccess.


What does the above statement mean? "These files can not be read from the web"  well I can read mine, infact I can right click and edit it in my ftp client or download it and change it.

Type into your browser "http://youradress.com/.htaccess". You wont be able to read it from the web. FTP is something different.
Quote:
"but you can rename a file to .htaccess" what? rename a file from .htaccess to .htaccess  why, why would anyone do that?

You sometimes can't edit these .htaccess files via ftp, thats why you could create a htaccess.txt on your computer, copy it over to the server and then rename it locally.
Quote:
Every line in my .htaccess starts with a #  should I precede the lines below with a # ? because when I don’t my site wont work.
Quote:
php_admin_flag register_globals off
php_admin_flag magic_quotes_gpc on


if you put a # before something, it is commented in this file. This means that everything in that line behind this character will not be interpreted and you are effectively switching the command used on that line to off. When your site does not work when using these two lines, you exactly have the situation why I wrote "some" and not "all" can be configured with these .htaccess-files. This is a feature your provider has to allow you to do.
Quote:
you say
Quote:
Apache/PHP configuration files outside of your website's folder
If you have access to the configuration files of your server, you can put


What configuration file?  Specifically what are the files called ?

The same as with the php.ini. These files can have a multitude of names and can be situated in equally as many folders. I just can't tell you which name the file has or where to find it, since this is not fixed and the same on every server.
Quote:
Also if I ask my hosting provider to turn globals off perhaps my joomla site will not work then I will have to raise another ticket to get globals turned back on.


So this is my problem:

I have the following 2 messages in my admin
PHP register_globals setting is `ON` instead of `OFF`
Joomla! RG_EMULATION setting is `ON` instead of `OFF` in file globals.php


Also It seems that some people can join my site without actually visiting it
New members have been created Names like “diet pills” and “free ringtones”

When I look at the member details they have no last visited date.

I think register globals thing has something to do with it. but I can not make any sense of this thread or the one it relates to.

The thing is hackers are targetting Joomla and all the help and advice seems to lead to this thread and we need more than one thread for this.

Yes, you *may* have problems with some extensions that need register_globals turned on. But these specific extensions are so damn insecure, that it would be a wonder that you haven't been hacked allready. TURN IT OFF! Using those extensions is like driving with a car without brakes. Its not a question if you crash but just when.

On the emulation, please read my original thread again. I explained where to turn it off.

About the users registering on your site: This has nothing to do with register_globals or anything. This is expected behaviour. The users register and only when they log in, they get a "last visited" date. Since the spammers using your registration form are not logging in, there is no "last visited" date available to the program. Easy as that.

About your last statement: You have noticed that you are in the security forum, right? This forum alone has over 34 pages of listed threads with the topic security. Also, there are literally hundreds of postings about register_globals and rg_emulation in this forum alone, not counting the hundreds writing such stuff into general questions, etc. There *is* more than one thread about this.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
   
 
Posted: Sat Nov 04, 2006 1:01 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 19, 2005 7:08 pm
Posts: 33
Location: Leeds UK
okay the RG_emulation thing is done

but changing .htaccess isn't working I've tried it on 2 of my sites

I have one very new site without any 3rd party extensions loaded

this is what I get when I add your line to .htaccess
Code:
php_flag register_globals off

this is what I get every time.
Quote:


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@playname.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.



This is the bottom of my .htaccess file every line above this starts with #
Code:
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]       ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
#
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^playname.com [NC]
RewriteRule ^(.*) http://www.playname.com/$1 [L,R=301]
php_flag register_globals off
########## End 3rd Party or Core SEF Section


Last edited by Nomax5 on Sat Nov 04, 2006 1:03 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Sat Nov 04, 2006 1:47 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3652
Location: NRW - Germany
Hackwar wrote:
Quote:
Every line in my .htaccess starts with a #  should I precede the lines below with a # ? because when I don’t my site wont work.
Quote:
php_admin_flag register_globals off
php_admin_flag magic_quotes_gpc on


if you put a # before something, it is commented in this file. This means that everything in that line behind this character will not be interpreted and you are not executing that command. When your site does not work when using these two lines, you exactly have the situation why I wrote "some" and not "all" can be configured with these .htaccess-files. This is a feature your provider has to allow you to do.

Please read the above statement again. I specifically wrote "SOME" can be configured this way, NOT all. You are one of those people that can't and where these config values can NOT be set by setting this in a .htaccess file. Ask your provider to turn it off.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
   
 
Posted: Tue Mar 06, 2007 4:16 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Mar 06, 2007 3:54 pm
Posts: 3
See, this is wrong... I am a provider playing with Joomla and am about to recomend agaisnt it.  None of the suggestions work other than turning it off.  However if I do hundreads of scripts by my clients no longer work.  thats not good for a business practice.  I would rather tell my clients to find another solution or program.


Top
  E-mail  
 
Posted: Tue Mar 06, 2007 4:32 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3652
Location: NRW - Germany
Yes, and airbags kill people and thus its better to not use them. Sorry, running a server with register globals = On is careless and trying to reason that other, badly coded scripts don't work if turned off, is the same as if I say you don't need a safety belt or an airbag when your driving 120 miles/hour in your Fiat Punto...

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
   
 
Posted: Tue Mar 06, 2007 4:37 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Mar 06, 2007 3:54 pm
Posts: 3
Ive been running like this for 4 years, noissues or problems.  If this were such common practice, why so many issues with peple having this problem where hosts wont change it because it causes hundreads of scripts to become broken.

thats all i am saying.  If it were so common, I guess there wouldnt be so much confusion and or threads regarding this.  At this point, Joomla is about off of our servers radar.  Sad though


Top
  E-mail  
 
Posted: Fri Mar 30, 2007 5:53 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Mar 13, 2007 8:12 pm
Posts: 5
Erm.. sorry to butt in, but surely the problem is that your scripts are badly coded?

Quote:
The function register_globals helps lazy developers with coding their programs. It basically takes all values, that are passed over to the script and puts them into variables.

Quote:
Why is this bad? The culprit with this functions is, that it does not check the value for anything harmfull.


Quote from http://forum.joomla.org/index.php/topic,93640.0.html

Your scripts break because they aren't coded to the right standard. End of story.

All Joomla is doing is notifying you of the security risk. What's wrong with that?


Top
   
 
Posted: Sun Nov 11, 2007 6:34 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Aug 31, 2007 3:21 am
Posts: 2
I have the same problem some of you have in which when I run joomla_hisa_en.php i get the message stating that my PHP register_globals setting is `ON` instead of `OFF`.  I check in the admin backend System --> System Info and it tells me Joomla! Register Globals Emulation: OFF and Register Globals: OFF.  I also check my php.ini file and it says its off.  Is it really off or on?

Also, when I run joomla_hisa_en.php the report tells me my configuration.php file is writeable and is in red, however the side panel reads... "Your configuration.php is not writable. For security this is good, however, you will no longer be able to use Joomla! to modify the configuration online."  This is most likely an error in the coding of joomla_hisa_en.php, right?

This is really getting me a headache.  Can anyone else tell me why I might be getting the register globals is ON message??  I'd really appreciate it.  Thanks in advance.

FYI, I spoke to my hosting company (bluehost) and they say its off in the php.ini file and have no clue why the joomla_hisa_en.php is reporting otherwise.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2

Quick reply

 



Who is online

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