Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 5:21 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: Wed Aug 30, 2006 2:46 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jan 26, 2006 11:36 pm
Posts: 71
Location: Los Angeles, California, United States
Does anyone know if there is a difference between a magic_quotes_gpc escaped value vs. a completely raw input that is escaped through mysql_real_escape_string or mysql_escape_string?

I thought I had read that mysql_real_escape_string actually escapes from more potentially harmful mysql characters than mysql_escape_string.  And that leads me to beg the question of whether either of those php functions will escape from more harmful characters than a magic_quotes_gpc escaped value.  Anyone know?

_________________
-Tyler D.
Web Developer & Integrator: http://www.LasVegasExtremes.com


Top
  E-mail  
 
Posted: Wed Aug 30, 2006 2:58 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 19, 2006 4:12 am
Posts: 37
Quote:
Replace the die statements in all "VALID_MOS" lines with a simple redirect to a 404 Error page (Page not found error). browser to access your site, the script will keep running and executes the rest of the code. If you really want the redirection, you need to do both: header and exit afterwards.


As an end user who has been updating componets even from big players this week that didn't have any Valid_MOS statement --

This sounds like a logical change to both joomla core and recommend to 3PDs.

_________________
W


Top
   
 
Posted: Wed Aug 30, 2006 3:21 am 
RobS wrote:
I think I will leave it at that, both sides have presented their arguments very well and I think we have all gotten our points across. :)


@Tyler - you will have to wait until RobS and Beat come back to play. I am still trying to figure out how I spent nearly 25 years in IT and don't understand more than 10% of what people are saying! This is only made more discouraging when RobS says that the cases were articulate and well presented, and I know in order to reach 10%, I had to cheat and count the discussions on wine and whiskey.

+++

I am hearing we agree that Rliskey should go with post #49. Change it to "1" and modify the description as per that post so it's EZ.

+++
It is so important to take this highly technical, fun and geeky debate and reduce it to something that normal people can read and understand without feeling overwhelmed or stupid so that it is clear to them the choices they have, and the steps needed to secure their websites.

In two months, I cannot believe the progress that you smart guys have made. And, I hope you recognize how valuable that is to our community.

Beat -- I just now saw your seven step PHP.INI decision making guide to safety. Perfect. You are right about continuing to rewrite and simplify and SHORTEN the message. That is a perfect example of "falling off a log" easy - can't miss.


Top
   
 
Posted: Wed Aug 30, 2006 3:57 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
tyler wrote:
Does anyone know if there is a difference between a magic_quotes_gpc escaped value vs. a completely raw input that is escaped through mysql_real_escape_string or mysql_escape_string?

I thought I had read that mysql_real_escape_string actually escapes from more potentially harmful mysql characters than mysql_escape_string.  And that leads me to beg the question of whether either of those php functions will escape from more harmful characters than a magic_quotes_gpc escaped value.  Anyone know?


Basically, addslashes() just adds slashes before quotes, double quotes, and null charachters.  mysql_escape_string() is similiar except it is more mysql specific and it escapes a few other things like newlines, carriage returns, back slashes, and the sub characther.  mysql_real_escape string() is better because it is charset sensitive so it will respect the character encoding, which is important, because when you get to charachter sets like chinese simplified and you need multiple bytes of data to store the value of one character (normal charsets only use 1 byte per charachter), you can break out of things like addslashes() and mysql_escape_string() by using certain charachters in chinese simplified (and others similarly large charsets).  Because Joomla supports internationalization, it is important that we use mysql_real_escape_string() because the UTF-8 charachter sets allow for chinese simplified multibyte characthers that can cause problems for addslashes() and mysql_escape_string().

I hope that helps

_________________
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: Wed Aug 30, 2006 4:35 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jan 26, 2006 11:36 pm
Posts: 71
Location: Los Angeles, California, United States
RobS wrote:
Basically, addslashes() just adds slashes before quotes, double quotes, and null charachters.  mysql_escape_string() is similiar except it is more mysql specific and it escapes a few other things like newlines, carriage returns, back slashes, and the sub characther.  mysql_real_escape string() is better because it is charset sensitive so it will respect the character encoding, which is important, because when you get to charachter sets like chinese simplified and you need multiple bytes of data to store the value of one character (normal charsets only use 1 byte per charachter), you can break out of things like addslashes() and mysql_escape_string() by using certain charachters in chinese simplified (and others similarly large charsets).  Because Joomla supports internationalization, it is important that we use mysql_real_escape_string() because the UTF-8 charachter sets allow for chinese simplified multibyte characthers that can cause problems for addslashes() and mysql_escape_string().

I hope that helps


Great info Rob, thx for that.  I'm curious though where magic_quotes_gpc = 1 stands with regard to escaping.  Does it escape the same characters as addslashes(), or is it more comprehensive like mysql_real_escape string() ?  I'm trying to figure this out because I've had no luck with net search on what characters magic_quotes_gpc = 1 will escape, and that information will be my basis for how I code my custom escaping function:
Code:
function smart_mysql_escape($value) {
   // Stripslashes
   if (get_magic_quotes_gpc()) {
       $value = stripslashes($value);
   }
   // Quote if not a number or a numeric string
   if (!is_numeric($value)) {
       $value = mysql_real_escape_string($value);
   }
   return $value;
}


The thing is, I've seen some custom escaping functions that simply return the magic_quotes_gpc'd $value if magic_quotes_gpc is on.  Now, if in fact there is a difference between a magic_quotes_gpc $value, versus a $value that is escaped with mysql_real_escape_string(), then I'd prefer to use the strongest escaping methodology in my custom escaping function.  I just need to know how strong magic_quotes_gpc = 1 is, wrt the other native php escaping functions (ie. addslashes(),  mysql_escape_string(),  & mysql_real_escape_string() ).

_________________
-Tyler D.
Web Developer & Integrator: http://www.LasVegasExtremes.com


Last edited by tyler on Wed Aug 30, 2006 4:38 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Aug 30, 2006 4:51 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Dec 05, 2005 10:17 am
Posts: 1318
Location: New Orleans, LA, USA
As far as I know magic_quotes_gpc works exactly like addslashes().

_________________
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: Wed Aug 30, 2006 9:14 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 8:53 am
Posts: 711
Location: Switzerland
Hi Rob,

Got your points accross and agree fully with them: that's why it's important to discuss them for 1.5, which is another class of beast than 1.0.

I like your global approach very much.

1.5 is playing in another league when it comes to its design, structure, and intended developpers. 1.5 requires good understanding of object-oriented programming among other things, which is less the case for 1.0. So, the level of successful "non-Joomla 1.0-legacy-mode" 3PD developpers will be very different, as well as their number. Also the new J! 1.5 framework, when used, allows to safely handle data in its original state. So yes, agreeing with you. For pure 1.5 J! applications, magic_quotes_gpc 0 is better and should not be less safe against developpers' bugs than magic_quotes_gpc 1 as long as only J! application framework is used.

As you agree that for 1.0, that magic_quotes_gpc 1 is better and safer, I think we are in line, and gave a simple clear answer to the community.

As a matter of fact, in my larger PHP applications, as developer, I hate having escaped non-raw variables, and prefer escaping according to the database used (e.g. mysql is ' -> \' and postgres ' -> '' (2 times "'") ) at database storage time than carrying over the escapings and changing them at database layer if required (e.g. \' -> '' for postgress).

But for small plugins and extensions, which are often written by less defensive or experienced developers, it's safer to give them safer escaped variables. And one of the big success factors of Joomla! 1.0, compared to more complex systems, has been that it's easy to change code or add code without deep programming knowledge. The result is there: 700+ extensions, but not all 100% cleanly written and secure.

Only question yet open for a consensus is that for a probably longer time than we expect, people will keep 1.5 legacy-compatibility setting ON to run existing 1.0 Joomla 3pd extension. So what should be the recommended setting be for Joomla 1.5.0 ? In light of legacy 3pd extensions, magic_quotes_gpc 1 is better security-wise, while magic_quotes_gpc 0 is cleaner for 1.5 core and pure 1.5 extensions.

I'm "a little" security biased, as you know ;), so it's a very good discussion. Sorry for being sometimes a little technical (tried to put those in separate paragraphs). No pun intended at all and didn't feel any from anybody either :)

_________________
Beat 8)
www.joomlapolis.com <= Community Builder + CBSubs Joomla membership payment system - team
hosting.joomlapolis.com <= Joomla! Hosting, by the CB Team


Top
  E-mail  
 
Posted: Wed Aug 30, 2006 9:47 am 
Beat wrote:
Only question yet open for a consensus is that for a probably longer time than we expect, people will keep 1.5 legacy-compatibility setting ON to run existing 1.0 Joomla 3pd extension. So what should be the recommended setting be for Joomla 1.5.0 ? In light of legacy 3pd extensions, magic_quotes_gpc 1 is better security-wise, while magic_quotes_gpc 0 is cleaner for 1.5 core and pure 1.5 extensions.


IMO - if you start out v 1.5 with compromise, you will never acheive the level of excellence you are aiming for. Go for it and trust your developers to dig in and get better. With all the organization, documenting and training you are already doing, it can happen. But, if you let it slide from the start, it will be impossible to ever get it back. For what that's worth!


Top
   
 
Posted: Wed Aug 30, 2006 10:41 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 8:57 am
Posts: 1247
Location: Shrewsbury, Shropshire, United Kingdom
Hi,

@rliskey: There is still one occurence of "magic_gpc_quotes" that needs changing to "magic_quotes_gpc" in your (most excellent, by the way) Security Checklist.  It's in the quote under "Here are example directives for the above suggestions:".  Sorry to be a pain but anyone who does a cut-and-paste will find that the line concerned will simply be ignored by PHP and it's the kind of mistake that can be hard to track down.

Regards,
Chris.

_________________
Joomla Leadership Team - Production Working Group
Joomla Documentation Coordinator

Davenport Technology Services (http://davenporttechnology.com)


Top
  E-mail  
 
Posted: Wed Aug 30, 2006 3:41 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 8:53 am
Posts: 711
Location: Switzerland
AmyStephen wrote:
Beat wrote:
Only question yet open for a consensus is that for a probably longer time than we expect, people will keep 1.5 legacy-compatibility setting ON to run existing 1.0 Joomla 3pd extension. So what should be the recommended setting be for Joomla 1.5.0 ? In light of legacy 3pd extensions, magic_quotes_gpc 1 is better security-wise, while magic_quotes_gpc 0 is cleaner for 1.5 core and pure 1.5 extensions.


IMO - if you start out v 1.5 with compromise, you will never acheive the level of excellence you are aiming for. Go for it and trust your developers to dig in and get better. With all the organization, documenting and training you are already doing, it can happen. But, if you let it slide from the start, it will be impossible to ever get it back. For what that's worth!


Very true.

As said, Joomla! 1.5 is another beast, and for 1.5, I'm basically agreeing with Rob's position of principe.

In addition, as RG_EMULATION is always OFF (0) in Joomla 1.5, the risk of unescaped strings is lower as variables can't be used directly.

For 1.0.x, in the light of badly configured servers and of some 3pd extensions vulnerabilities, adding multiple lines of defense and warnings was not a luxury.

Yes, 1.5 is a new story. :)

But am I wrong in assuming that you can always restore unescaped status of a magic_quote_gpc escaped string using stripslashes ? even with UTF-8 ? As a matter of fact I use a private function getUnescaped() in all my larger applications which does exactly that, and seems to work fine in Chinese and other UTF-8 languages...

Right now (i just svn updated my 1.5 test-installation, the Joomla! 1.5 installer recommends magic_gpc_quote ON, so the 1.5 core devs seem to be agreeing ? :D

Also I didn't see a large PHP application around yet recommending magic_quotes to be OFF (e.g. just installed SMF 1.1 RC3 with UTF-8 support, and it doesn't care either). But your experiences may be different.

It would be good is to reach a consensus in core team on this, if this recommendation needs really to be changed for 1.5.

_________________
Beat 8)
www.joomlapolis.com <= Community Builder + CBSubs Joomla membership payment system - team
hosting.joomlapolis.com <= Joomla! Hosting, by the CB Team


Top
  E-mail  
 
Posted: Wed Aug 30, 2006 6:49 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Sep 10, 2005 10:31 pm
Posts: 823
Here are two code snippets from 1.5 SVN revision 4839:
[code=\libraries\joomla\environment\request.php, line 135]
// Handle magic quotes compatability
if (get_magic_quotes_gpc() && ($result != $default))
{
if (!is_array($result) && is_string($result)) {
$result = stripslashes($result);
}
}
[/code]
and
[code=\libraries\joomla\environment\request.php, line 212]
// Handle magic quotes compatability
if (get_magic_quotes_gpc()) {
$result = JRequest::_stripSlashesRecursive( $result );
}
[/code]

This means that all extensions which use the JRequest class will get values without quotes, no matter what the magic_quotes_gpc setting is.

Beat wrote:
Right now (i just svn updated my 1.5 test-installation, the Joomla! 1.5 installer recommends magic_gpc_quote ON, so the 1.5 core devs seem to be agreeing ? :D


I've asked pretty much the same question a few weeks ago on the dev mailing list, and the answer from two core devs was to remove the recommended setting. So the installer message is still there as a "leftover" from old 1.0.x days, and most probably you'll notice that the recommended setting during the installation will go away soon ;)
I'll bring this up on the dev mailing list again though, especially after 1.0.11 now clearly directs you to set magic_quotes to "on". Personally, I'm in favour of removing it for 1.5. We'll see what comes out of this...

_________________
We may not be able to control the wind, but we can always adjust our sails


Top
   
 
Posted: Wed Aug 30, 2006 7:33 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Sep 10, 2005 10:31 pm
Posts: 823
RobS wrote:
tyler wrote:
Does anyone know if there is a difference between a magic_quotes_gpc escaped value vs. a completely raw input that is escaped through mysql_real_escape_string or mysql_escape_string?

I thought I had read that mysql_real_escape_string actually escapes from more potentially harmful mysql characters than mysql_escape_string.  And that leads me to beg the question of whether either of those php functions will escape from more harmful characters than a magic_quotes_gpc escaped value.  Anyone know?


Basically, addslashes() just adds slashes before quotes, double quotes, and null charachters.  mysql_escape_string() is similiar except it is more mysql specific and it escapes a few other things like newlines, carriage returns, back slashes, and the sub characther.  mysql_real_escape string() is better because it is charset sensitive so it will respect the character encoding, which is important, because when you get to charachter sets like chinese simplified and you need multiple bytes of data to store the value of one character (normal charsets only use 1 byte per charachter), you can break out of things like addslashes() and mysql_escape_string() by using certain charachters in chinese simplified (and others similarly large charsets).  Because Joomla supports internationalization, it is important that we use mysql_real_escape_string() because the UTF-8 charachter sets allow for chinese simplified multibyte characthers that can cause problems for addslashes() and mysql_escape_string().

I hope that helps


In addition to Rob's post, here is an article by Chris Shiflett that explains some differences between addslashes and mysql_real_escape_string (and why addshlashes is insecure for certain multibyte charsets) for the interested reader ;)

http://shiflett.org/archive/184

_________________
We may not be able to control the wind, but we can always adjust our sails


Top
   
 
Posted: Wed Aug 30, 2006 9:24 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 8:53 am
Posts: 711
Location: Switzerland
Thanks Enno for this indeed interesting condensed and hands-on reading.

Happy to see that 1.5 really took it the professional way.  8)

Could you please confirm or correct me, to make sure I undertood it right looking at the 1.5 code:

1.5 is in fact insensible to magic_quotes_gpc setting and this Multibyte-escaping pitfall, as stripslashes does first exactly the reverse of magic_quotes_gpc if magic_quotes_gpc is set to 1, then normal raw data handling is done in all cases in the components/modules code, and then only at the SQL-query the proper (e.g. mysql_real_escape_string for mysql databases) escaping is performed, taking also in account the multibyte settings and database type.

Right ?

In that case, magic_quotes_gpc setting is don't care and 0 can be slightly recommended for performance reasons, but is less of a security concern than in Joomla 1.0 series extensions...

And that's why in Joomla 1.5 the magic_quotes_gpc settings recommendation can be completely removed...

Right ?

_________________
Beat 8)
www.joomlapolis.com <= Community Builder + CBSubs Joomla membership payment system - team
hosting.joomlapolis.com <= Joomla! Hosting, by the CB Team


Top
  E-mail  
 
Posted: Wed Aug 30, 2006 10:03 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
Right !

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Thu Aug 31, 2006 4:54 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jan 26, 2006 11:36 pm
Posts: 71
Location: Los Angeles, California, United States
friesengeist wrote:
In addition to Rob's post, here is an article by Chris Shiflett that explains some differences between addslashes and mysql_real_escape_string (and why addshlashes is insecure for certain multibyte charsets) for the interested reader ;)

http://shiflett.org/archive/184

Thanks so much Enno for Shiflett's blog article.  I read a lot of valuable info linked from there and learned some very important stuff about security.

I guess a good thing (wrt escaping MySQL strings) is that if one is using UTF-8, then they don't need to be concerned w/the difference between addslashes() vs mysql_real_escape_string()

Just curious Enno, do you know if magic_quotes_gpc = 1 accomplishes the same thing as addslashes(), or is it more encompassing like mysql_real_escape_string() ?

_________________
-Tyler D.
Web Developer & Integrator: http://www.LasVegasExtremes.com


Top
  E-mail  
 
Posted: Thu Aug 31, 2006 9:26 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sat Sep 10, 2005 10:31 pm
Posts: 823
tyler wrote:
Just curious Enno, do you know if magic_quotes_gpc = 1 accomplishes the same thing as addslashes(), or is it more encompassing like mysql_real_escape_string() ?


Yes, it does the same thing: http://de.php.net/manual/en/function.addslashes.php
Quote:
The PHP directive  magic_quotes_gpc is on by default, and it essentially runs addslashes() on all GET, POST, and COOKIE data.

_________________
We may not be able to control the wind, but we can always adjust our sails


Top
   
 
Posted: Fri Sep 01, 2006 3:26 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 30, 2005 9:11 pm
Posts: 538
Location: Aix-En-Provence, France
Here is some informations I got from 1and1 support.
It is possible to update php.ini setting from a custom file.

1. create a new php.ini file with tis simple line:
Code:
#!/usr/bin/php -c php.ini

2. upload this file in your root and /administrator directories
3. edit all these files:
Code:
/index.php
/index2.php
/administrator/index.php
/administrator/index2.php
/administrator/index3.php

and add this line at the top of each file :
Code:
#!/usr/bin/php -c php.ini

This overwrite the settings from the common php.ini file (works for me)

But it seems this line does not support relative path... any idea?

_________________
May the forge be with you!
http://www.joomlation.eu (intl)
http://www.joomlation.org (fr)


Top
  E-mail  
 
Posted: Fri Sep 01, 2006 7:55 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jan 26, 2006 11:36 pm
Posts: 71
Location: Los Angeles, California, United States
globule wrote:
Here is some informations I got from 1and1 support.
It is possible to update php.ini setting from a custom file.
.....
This overwrite the settings from the common php.ini file (works for me)

But it seems this line does not support relative path... any idea?



Does it require apache reboot before it takes effect?  I know this is usually the case w/the master php.ini file.

_________________
-Tyler D.
Web Developer & Integrator: http://www.LasVegasExtremes.com


Top
  E-mail  
 
Posted: Fri Sep 01, 2006 8:05 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 30, 2005 9:11 pm
Posts: 538
Location: Aix-En-Provence, France
tyler wrote:
Does it require apache reboot before it takes effect?  I know this is usually the case w/the master php.ini file.

Not at all. Modificatons are updated immediatly.

_________________
May the forge be with you!
http://www.joomlation.eu (intl)
http://www.joomlation.org (fr)


Top
  E-mail  
 
Posted: Fri Sep 01, 2006 8:15 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 8:53 am
Posts: 711
Location: Switzerland
globule wrote:
Here is some informations I got from 1and1 support.
It is possible to update php.ini setting from a custom file.

1. create a new php.ini file with tis simple line:
Code:
#!/usr/bin/php -c php.ini

2. upload this file in your root and /administrator directories
3. edit all these files:
Code:
/index.php
/index2.php
/administrator/index.php
/administrator/index2.php
/administrator/index3.php

and add this line at the top of each file :
Code:
#!/usr/bin/php -c php.ini

This overwrite the settings from the common php.ini file (works for me)

But it seems this line does not support relative path... any idea?



Warning:

This will only change php settings and protect the files where this line is included.

The PHP register_globals setting is precisely most useful for those files where the other standard files, like global.php, are not included and bugs/forgettings/missing security checks are missing.

The warning from backend configuration will not show up (as it's from a normal entry point), so you will not be warned of this missing barrier of protection for other entry points.

Sorry, this is not a good implementation for changing default PHP settings, security-wise.

_________________
Beat 8)
www.joomlapolis.com <= Community Builder + CBSubs Joomla membership payment system - team
hosting.joomlapolis.com <= Joomla! Hosting, by the CB Team


Top
  E-mail  
 
Posted: Fri Sep 01, 2006 8:53 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Aug 30, 2005 9:11 pm
Posts: 538
Location: Aix-En-Provence, France
That's why I posted here, to be sure this is a good solution. But it's not!

_________________
May the forge be with you!
http://www.joomlation.eu (intl)
http://www.joomlation.org (fr)


Top
  E-mail  
 
Posted: Sat Sep 02, 2006 1:37 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 8:53 am
Posts: 711
Location: Switzerland
Jinx wrote:
Right !


Rechecked source and corrected the very important paragraph 3 (SQL injections) of developper documentation for securing extensions in wiki accordingly (mosGetParam escapes and JRequest:getVar() does not.

Here the link for review and fixes/complements as needed:
http://dev.joomla.org/component/option, ... injections

_________________
Beat 8)
www.joomlapolis.com <= Community Builder + CBSubs Joomla membership payment system - team
hosting.joomlapolis.com <= Joomla! Hosting, by the CB Team


Top
  E-mail  
 
Posted: Tue Sep 19, 2006 9:16 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 01, 2006 8:04 am
Posts: 46
Location: Berlin
The Security Checklist is very well done. But who reads it? I think every one who has a problem with his site (something like my site got hacked).

Maybe it would be better to serve the security checklist with the installation. So that every one who installs joomla is aware of the risks and the actions to take against security risks.

Or if register globals is on the site is offline until you explicitly say it should ignore register globals on or you change register globals to off. Such things that help the guys who never read the manual or the forum. It helps them to get a better and more secure joomla. And it helps the community to not always have the same postings "my site got hacked". And also those little script kiddies got no more food for there bot nets.


Top
  E-mail  
 
Posted: Tue Sep 19, 2006 9:44 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 8:53 am
Posts: 711
Location: Switzerland
kmekc wrote:
The Security Checklist is very well done. But who reads it? I think every one who has a problem with his site (something like my site got hacked).

Maybe it would be better to serve the security checklist with the installation. So that every one who installs joomla is aware of the risks and the actions to take against security risks.
...


Actually, this is already the case with Joomla! 1.0.11 ;)

By default, for compatibility reasons at install and upgrade times, RG_EMULATION is ON by default. This triggers the security warning at installation and in backend homepage. Each of these warnings has a direct link to exactly this Security Checklist...  8)

_________________
Beat 8)
www.joomlapolis.com <= Community Builder + CBSubs Joomla membership payment system - team
hosting.joomlapolis.com <= Joomla! Hosting, by the CB Team


Top
  E-mail  
 
Posted: Tue Sep 19, 2006 9:50 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 01, 2006 8:04 am
Posts: 46
Location: Berlin
Ah :)

well done.

As i installed joomla there was not such a thing. And i just upgraded to 1.0.11, so there was no need to take care of the list ;)


Top
  E-mail  
 
Posted: Tue Sep 19, 2006 7:27 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Maybe it would make sense to show a link to the security list in all cases, including when the server settings are "correct". Even those who got those three setting "right," may have other security questions.

BTW: I'm gradually moving actual advise out of that list and into the FAQ forum where it belongs. That way the list can once again be just a high-level overview of the issues, with pointers to the best background information.

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


Top
  E-mail  
 
Posted: Thu Oct 05, 2006 8:34 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 01, 2006 8:04 am
Posts: 46
Location: Berlin
If something is added to the security checklist, please add a note what has been changed. :)

If you don't read every thread, you only see that there has been a change, but don't see what has changed.


Top
  E-mail  
 
Posted: Thu Oct 05, 2006 4:40 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Quote:
If something is added to the security checklist, please add a note what has been changed. Smiley
If you don't read every thread, you only see that there has been a change, but don't see what has changed.


Point taken. I try to minimize posts, but will do this from now on.

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


Top
  E-mail  
 
Posted: Thu Oct 05, 2006 4:46 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Jun 06, 2006 7:41 am
Posts: 808
Location: Third planet from Sol
Because the Security Checklist has become so long, we are gradually moving the detailed information to the Joomla! FAQs. This will allow the checklist to again be just a quick checklist, with many links to more complete background information.

Security FAQ: http://forum.joomla.org/index.php/board,322.0.html

3rd Party/Non Joomla! Security FAQ: http://forum.joomla.org/index.php/board,346.0.html

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


Top
  E-mail  
 
Posted: Thu Oct 05, 2006 6:19 pm 
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Aug 12, 2005 7:19 am
Posts: 4471
Location: Leeds, UK
thanks for your hard work organising this.


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: flicman 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