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

This is a discussion on [Security Patch] Sorry, I don't have time to mess around right now... in the Shared & Semi-Dedicated forum
... I need to get back to work (call back)... However, doing a little playing around, the last hour or so, I noticed a serious ...

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

    Exclamation [Security Patch] Sorry, I don't have time to mess around right now...

    ... I need to get back to work (call back)...

    However, doing a little playing around, the last hour or so, I noticed a serious security problem on 'my' server -- Platinum. This is especially critical if you allow ANY uploading to your web site!

    I don't have time to get into it now, and I'm NOT inclined to get into it anyway, considering the brow-beating I got the last time I mentioned a vuln here -- but if you're smart, you should add this to your '.htaccess' file ASAP:

    Code:
    # Make sure Apache is reporting these MIME types correctly.
    AddType application/x-compress          .Z
    AddType application/x-gzip              .gz .tgz
    AddType application/x-rar-compressed    .rar
    AddType application/x-tar               .tgz
    Read between the lines, for now...

    Latez!
    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

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Heh! Sorry about that! I've been busy upgrading my SquirrelMail install today, and forgot about this...

    Okay, to see if 'your' server is vulnerable to this (ahem) unspecified attack, try the following...

    Create a plain text file containing the following code:
    PHP Code:
    <?php print 'Oops!  This server is vulnerable to attack!'?>
    Save and rename it to vuln.php.rar, then upload it somewhere on 'your' server.

    Then, run it in your browser by entering the URL in the browser's addy bar.

    If the page shows the message:
    Oops! This server is vulnerable to attack!
    ..you should be alarmed!

    If it returns garbled text, or just asks you to download the file, then 'your' web server is probably configured okay and you're not vulnerable. Otherwise, use the fix above...

    I added those extra MIMEs just to play it safe -- and there are others that need to be addressed -- but that should fix the immediate unspecified problem...
    Last edited by Vin DSL; 05-28-2006 at 07:24 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

  3. #3
    Like a star... Julian Muñoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,399
    I'm not using apache but I tried what you posted anyway.... everything seems alright
    Julian D. Muñoz - LANeros.com

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Julian Mu&#241;oz
    I'm not using apache but I tried what you posted anyway.... everything seems alright
    Heh! Good man!

    Yes, this is an Apache 'problem'... actually a Apache/PHP problem, but we'll let Ron figure that out... if he's smart enough.

    Maybe he can supply Jag with some more POCs...
    Last edited by Vin DSL; 05-30-2006 at 12:55 AM.
    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

  5. #5
    JPC Senior Member
    Join Date
    Feb 2003
    Posts
    57
    Quote Originally Posted by Vin DSL
    Heh! Sorry about that! I've been busy upgrading my SquirrelMail install today, and forgot about this...

    Okay, to see if 'your' server is vulnerable to this (ahem) unspecified attack, try the following...

    Create a plain text file containing the following code:
    PHP Code:
    <?php print 'Oops!  This server is vulnerable to attack!'?>
    Save and rename it to vuln.php.rar, then upload it somewhere on 'your' server.

    Then, run it in your browser by entering the URL in the browser's addy bar.

    If the page shows the message:
    ..you should be alarmed!

    If it returns garbled text, or just asks you to download the file, then 'your' web server is probably configured okay and you're not vulnerable. Otherwise, use the fix above...

    I added those extra MIMEs just to play it safe -- and there are others that need to be addressed -- but that should fix the immediate unspecified problem...
    Thanks Vin.
    I tried it on MY server (he-he) and I got the "alarming" message. Added your suggestions to the .htaccess and now it just asks to download it. Time to go check the resold accounts...

    Thanks again. I hate those vulnerablities to unspecified attacks.

    Jeff

  6. #6
    JPC Member amazing's Avatar
    Join Date
    May 2002
    Location
    Auckland, NZ
    Posts
    38
    Hi Vin

    Tried it on mine and also got the "alarming" message!
    Changed the .htaccess and now is fine. Like Jeff I'll have to check the resolds.

    Thanks for your suggestion.
    I don't know what your problem is, but I'll bet it's hard to pronounce..

  7. #7
    With a cape and a spear
    Join Date
    Apr 2006
    Location
    A point or extent in space, a determination of the location of something
    Posts
    34
    For those of us who have several sites, wouldn't it make more sense to put those lines in the httpd.conf file instead of an .htaccess?

  8. #8
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    My browser displays the contents (text) of the file, it doesn't execute the php, and I haven't done anything to change anything in .htaccess.

    Maybe my server is set up a bit differently than yours, or maybe I'm too stupid to figure it out. Either way. Since I don't allow people to upload any files to my server that have a vulnerable extension... I guess I'm safe. Or ignorant. Either way, I'm blissful.
    Last edited by Ron; 06-03-2006 at 01:14 AM.

  9. #9
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Highway of Life
    For those of us who have several sites, wouldn't it make more sense to put those lines in the httpd.conf file instead of an .htaccess?
    Bingo! I was wondering if anyone would pick up on that!

    Yes, this could easily be fixed by mapping it server-wide, but as I was recently reminded, it's not my server...
    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

  10. #10
    Friendly rainboy's Avatar
    Join Date
    Apr 2006
    Location
    Eindhoven, The Netherlands
    Posts
    546
    Time for VPS Vin ? Or rather go dedicated?

  11. #11
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by rainboy
    Time for VPS Vin ? Or rather go dedicated?
    I don't need a server -- I'm resting my feet on a Slackware box -- hasn't gone down in, like, three years, except for power outages.

    What I need is an OC48 connection (and a diesel UPS)...

    Know where I can find one cheap?

    OMG!!! Where is all this dust coming from???
    Attached Images Attached Images
    Last edited by Vin DSL; 06-03-2006 at 02:10 AM.
    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

  12. #12
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Hey, I was thinking...

    I've been upgrading Portable Firefox to 1.5.0.4 tonight. Heh! I used the profile from my 1.0.8 (ax) nightly, and it booted up just fine!

    Anyway, maybe I could put my 'server' on a thumbdrive, and plug it in down at the public library or something. They'd never know, right?

    No reason to lug the whole box around...
    Attached Images Attached Images
    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
    Friendly rainboy's Avatar
    Join Date
    Apr 2006
    Location
    Eindhoven, The Netherlands
    Posts
    546
    Vin,

    some Datacenters do have free tours, those servers have USB nowerdays aswell *hint* *hint*

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
  •