Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member WeMasterz5's Avatar
    Join Date
    Feb 2003
    Location
    Miami
    Posts
    361

    Default Daily /tmp issues crashing box

    ok... this is getting silly.... dont mind me I am getting frustrated with this

    have done most if everything from these forums to secure server.. the last week or so I am getting files written to the /tmp dir that is doing something to crash the server


    -rw-r--r-- 1 nobody nobody 110 Jun 23 16:32 own.c

    int getuid() { return 0; }
    int geteuid() { return 0; }
    int getgid() { return 0; }
    int getegid() { return 0; }



    -rwxr-xr-x 1 nobody nobody 4587 Jun 23 16:31 own.so*
    --wxrw--wt 1 nobody nobody 19258 Jun 23 16:29 r0nin*


    suggestions... please
    What is in a sig anywho é

  2. #2
    Member
    Join Date
    Jan 2007
    Posts
    113

    Default

    Quote Originally Posted by WeMasterz5 View Post
    ok... this is getting silly.... dont mind me I am getting frustrated with this

    have done most if everything from these forums to secure server.. the last week or so I am getting files written to the /tmp dir that is doing something to crash the server


    -rw-r--r-- 1 nobody nobody 110 Jun 23 16:32 own.c

    int getuid() { return 0; }
    int geteuid() { return 0; }
    int getgid() { return 0; }
    int getegid() { return 0; }



    -rwxr-xr-x 1 nobody nobody 4587 Jun 23 16:31 own.so*
    --wxrw--wt 1 nobody nobody 19258 Jun 23 16:29 r0nin*


    suggestions... please

    haha.. people are still using lsroot.c I see. Your box is getting forkbombed by a clueless ./kiddie who is likely exploiting a web application (as noted by the uid.gid nobody.nobody), and thinks that they're rooting your box when running the "own" script (or, more specifically, whatever script that is creating the own.so shared object).

    See this: interesting

    and you can either hire an admin to figure out how the attacker is accessing your box (recommended), or start digging through your domain logs for activity on June 23rd around 16:29 - 16:31. Let us know if you find anything interesting!
    Last edited by jpetersen; 06-23-2009 at 11:52 PM.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    First thing you should do is install suphp to track which account they are coming from, so instead of them being owned by 'nobody' it will show the actual account. That will narrow it down to the account that has the vulnerabilities in it.

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    Quote Originally Posted by WeMasterz5 View Post
    have done most if everything from these forums to secure server..
    No you haven't!

    I can tell from the rest of your post, you have at several separate security
    holes that obviously haven't been closed yet although there are plenty of
    posts around here describing both which ironically I posted on those very
    same topics just within this past week.

    Like PlatinumServerM said above, switch your PHP from DSO over to SuPHP
    and then make your /tmp partition non-executable and disallow escalations
    (yes I've posted on both of those recently as well - look at my old posts)

    Wouldn't hurt to throw in a mod_security rule or two either to go ahead and
    block the requests from the obvious bonehead newb wannabe hacker.

    If you would like more one on one assistance to more aggressively attack
    these issues and maybe close out more hidden problems then contact me
    and I'll be glad to give you a hand with that.

    In the meantime, I would suggest addressing the items I listed above and
    reading through some of my prior posts as that should give you a wealth
    of more information as to how to address those items and secure other
    parts of your server, etc.
    Last edited by Spiral; 06-26-2009 at 04:45 AM.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Default

    Make /tmp noexec, disable php system functions

  6. #6
    Member
    Join Date
    Jan 2007
    Posts
    113

    Default

    Quote Originally Posted by Spiral View Post
    Like PlatinumServerM said above, switch your PHP from DSO over to SuPHP
    and then make your /tmp partition non-executable and disallow escalations
    (yes I've posted on both of those recently as well - look at my old posts)
    If suPHP is being used, then it isn't necessary to use /tmp for any attacks that require execve() and friends. The same goes for attacks that require suid/sgid functionality. How many people actually have /home mounted as a separate partition, and have it mounted nosuid (and possibly noexec)? And what about checking the other partitions for world writeable locations which could be used to bypass noexec and nosuid restrictions? "securing" /tmp is not a means to and end, but is just 1 piece of larger set of actions requried to achieve the desired results.

    If you would like more one on one assistance to more aggressively attack
    these issues and maybe close out more hidden problems then contact me
    and I'll be glad to give you a hand with that.
    Giving random people access to your server is a really bad idea. There has been a number of posts from the Spiral account over the years asking for people to provide access to their servers. If you want to help close out more hidden problems, why not create a publicly available tutorial for things to look for that will help people to help themselves, and that everyone can learn from?



    edit: http://www.webhostingtalk.com/showthread.php?p=4637475

    This is why you don't give random people access to your box. Go with an established server administration company.
    Last edited by jpetersen; 06-26-2009 at 01:32 PM.

  7. #7
    Registered User
    Join Date
    Jun 2009
    Posts
    1

    Default

    I'm also having issues with a user "nobody" using up all the ram on the server and crashing it - about 5 times a day recently.

    If I install this suPHP, will I be able to see which site of mine is hosting this problem?

    Also, can I get some support on installing suPHP? I'm a newb.

  8. #8
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default

    You can install suphp using " /scripts/easyapache "

    Advantages of using Suphp

    php handler should be CGI ( php files run under the user ownership only )

    644 permission is enough to execute files.

    No need of full permission to upload files using php

    But php variables cant be declared through .htaccess, rather you have to create a separate php.ini file under users document root.
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

Similar Threads & Tags
Similar threads

  1. Issues with cpanel VPS running out of memory/crashing
    By M001 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-05-2011, 01:43 AM
  2. Box Trapper Suggestion - Daily e-mail digest
    By jpastore in forum Archived Feature Requests
    Replies: 1
    Last Post: 12-29-2009, 12:05 AM
  3. Server Crashing Daily
    By biggdogg285 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-25-2007, 03:24 PM
  4. aspell crashing my box.
    By sneader in forum cPanel and WHM Discussions
    Replies: 19
    Last Post: 07-27-2005, 03:17 PM
  5. Backup daily and weeky but my box backup only daily
    By taotoon in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-28-2005, 09:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube