Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 14 of 14

This is a discussion on Security Concern - Jag? in the Shared & Semi-Dedicated forum
http://www.linuxdevcenter.com/pub/a/...ecurities.html I'm specifically concerned about the PHP issue. Could you address this? ...

  1. #1
    JPC Senior Member
    Join Date
    Jun 2003
    Location
    Michigan
    Posts
    61

    Security Concern - Jag?

    http://www.linuxdevcenter.com/pub/a/...ecurities.html

    I'm specifically concerned about the PHP issue. Could you address this?

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Um... if they turn the globals off, GET and POST data will not be available as variable data. That will force everyone to rewrite all their scripts to use HTTP session variables. I would venture to say, most sites on JagPC, written in PHP, would quite working immediately. Besides, most of the injections written these days will 'work' whether or not globals are turned on or off. So, while one could quip that having globals turned on is an accident waiting to happen, I don't think the turmoil that will result in turning them off will be worth it IMHO.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    JPC Addict
    Join Date
    Aug 2002
    Posts
    144
    Originally posted by Vin DSL
    Um... if they turn the globals off, GET and POST data will not be available as variable data. That will force everyone to rewrite all their scripts to use HTTP session variables. I would venture to say, most sites on JagPC, written in PHP, would quite working immediately. Besides, most of the injections written these days will 'work' whether or not globals are turned on or off. So, while one could quip that having globals turned on is an accident waiting to happen, I don't think the turmoil that will result in turning them off will be worth it IMHO.
    That is not Excatly True, all the Scripts would have to be Rewritten but not to use sessions but the new "super global" variables, etc


    and you can locally change the Global Variables setting on a per User Basis via .htacces

    Most scripts are being coded now so that that feature can be turned off,

    and if you still code in that fasion, you not writting secure code anyway

    Michael
    Xtreme-Web-Design

  4. #4
    Administrator Eric's Avatar
    Join Date
    Sep 2001
    Posts
    853
    We've tried turning globals off before and the results of turning them off were much worse than what we've seen by keeping them on. I know many software vendors are working to re-code their products to work around globals being off as they should be so we will eventually turn them off in the future. We realize clients can use the .htaccess files to manipulate this variable and we'll just have to deal with those clients who refuse to do so when we do turn globals off.
    Eric E. [eric@jaguarpc.com]
    Jaguar Technologies, LLC
    JaguarPC.com * DedicatedSpace.com

  5. #5
    JPC Addict
    Join Date
    Aug 2002
    Posts
    144
    Originally posted by Eric_Echter
    We've tried turning globals off before and the results of turning them off were much worse than what we've seen by keeping them on. I know many software vendors are working to re-code their products to work around globals being off as they should be so we will eventually turn them off in the future. We realize clients can use the .htaccess files to manipulate this variable and we'll just have to deal with those clients who refuse to do so when we do turn globals off.
    ohh I dont fault you for leaving them on, right now I would as well,

    after 5 comes out though, I would start thinking about it
    Michael
    Xtreme-Web-Design

  6. #6
    Just Walking...
    Join Date
    Oct 2002
    Location
    England
    Posts
    436
    Originally posted by XtremeCarAudio
    That is not Excatly True, all the Scripts would have to be Rewritten but not to use sessions but the new "super global" variables, etc
    Easier said than done. We're told that $_REQUEST is just as dangerous as relying on globals being registered, yet there are cirumstances where you can't code a script to just use $_POST or $_GET.

    Personally I'd much prefer my scripts to solely use POST, as it's much tidier from a users POV but that would mean making every single link into a mini-form.
    Last edited by G.Bloke; 02-15-2004 at 09:41 AM.

  7. #7
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Originally posted by G.Bloke
    Personally I'd much prefer my scripts to solely use POST, as it's much tidier from a users POV but that would mean making every single link into a mini-form.
    Hear! Hear!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  8. #8
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    If you're concerned, just add the following to your .htaccess file:

    php_flag register_globals off

    When that warning first came out I retooled my site to make sure I wasn't relying on any "direct" variables anywhere and then tuned the feature off.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  9. #9
    JPC Addict
    Join Date
    Aug 2002
    Location
    Dallas
    Posts
    101
    Does someone know of a link right off-hand that discusses cross-site scripting vulnerabilities in plain language. I've read some tutorials/FAQ's that are way past me. I'm not a programmer, by trade or by hobby. But, when I do coding, I do try to pay attnetion to this stuff. So, if anyone knows a good link that has worked on explaining and suggesting improvements, I'd be grateful for it.

    Thanks!
    For every human problem, there is a neat, simple solution; and it is always wrong.

    --H.L. Mencken

  10. #10
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Give this a whirl:

    http://www.cgisecurity.com/articles/xss-faq.shtml

    If that doesn't float your boat, just do a Google search for 'XSS.' That's how us 'experts' refer to it...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  11. #11
    JPC Addict
    Join Date
    Aug 2002
    Location
    Dallas
    Posts
    101
    Thanks, Vin!

    That's the best one I've seen so far. Exactly what I was looking for.
    For every human problem, there is a neat, simple solution; and it is always wrong.

    --H.L. Mencken

  12. #12
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    XSS is trippy, isn't it? Sometimes I launch hex bombs at my own site, just to see what will happen...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  13. #13
    JPC Addict
    Join Date
    Aug 2002
    Location
    Dallas
    Posts
    101
    Yeah, I think that's the direction I'm moving in. I've been pretty conscientious about watching those kinds of things (as much as a non-programmer can be) but these vulnerabilities give me the heeby-jeebies for my site and for the damage they can do. So, I guess I need to try and pay some attention to it (before someone else does).
    For every human problem, there is a neat, simple solution; and it is always wrong.

    --H.L. Mencken

  14. #14
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Backup! Backup! Backup! That's all I can tell you.

    The exploits will never stop --- never! Even if your site is somewhat safe, on a shared server, how about the guy's site sitting next to you on the hard drive, you know?

    As I said above, the latest injections don't give a hoot in hell if globals are turned on or off...
    Last edited by Vin DSL; 02-18-2004 at 11:48 PM.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •