Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member amal's Avatar
    Join Date
    Nov 2003
    Location
    India
    Posts
    153

    Smile A small suggestion to cpanel regarding nobody permissions.. :)

    Hi,

    It would be nice to prevent the user nobody from having acess to some powerful binaries like perl. I have done this on of my servers and only thing that didn't work was the cpanel and whm redirect.. that is domain.com/whm and domain.com/cpanel URLs...

    Now, my question is "Is there anyway to make domain.com/whm redirect to work without giving execute permissions for user - nobody on perl binary?"

    Thanks in Advance..

    #####

    Regards,
    Amal.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Not really possible because there are people who disable SUEXEC and then all perl scripts are run as nobody. The real problem is the crappy php security model (or extreme lack of it) which I 've never been able to fathom considering the whole point of php is as a language for web sites. Ah well.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member amal's Avatar
    Join Date
    Nov 2003
    Location
    India
    Posts
    153

    Smile

    Quote Originally Posted by chirpy
    Not really possible because there are people who disable SUEXEC and then all perl scripts are run as nobody.
    But, if there is an option for only those users who use suexec, it would have been very nice, considering the wide range of security exploits by allowing nobody to have execute permissions on powerful binaries - especially perl. ..

    The people who do not want suexec can continue that way..

    What I'm trying to suggest is to bring in an option like - "switch to secure mode" where nobody has got restricted access..

    I really appreciate your thoughts on it...

    Quote Originally Posted by chirpy
    The real problem is the crappy php security model (or extreme lack of it) which I 've never been able to fathom considering the whole point of php is as a language for web sites. Ah well.
    And yeah, I agree with that..

  4. #4
    Registered User
    Join Date
    Dec 2003
    Posts
    4

    Default

    I think this would be easier in near future when SE Linux become popular. It provide the administrator with lot flexibility once mastered
    I think we now have two options.

    1) Replace binary with dummy scripts which checks for the user ( may terribly affect performance )
    2) Put users in a system group which can execute these binaries and remove permission for others.

    Both of these methods can cause more headache than current situation. But these are the ones I can think of now.
    Anyway what I do is

    install mod_security
    remove permissions for usual downloading tools ( like wget lynx )

    and i find these two steps help me to fight against nobody getting shell

    Cheers
    Shameer

  5. #5
    Member amal's Avatar
    Join Date
    Nov 2003
    Location
    India
    Posts
    153

    Default

    Quote Originally Posted by shameer
    2) Put users in a system group which can execute these binaries and remove permission for others.

    Both of these methods can cause more headache than current situation. But these are the ones I can think of now.
    Anyway what I do is
    I have already tried that it's very nice, except for the http://domain/cpanel and http://domain/whm. These links will work only if nobody has got execute permissions to perl binary. But the domain:2082 and domain:2086 link will work without any problem... I think, it becomes a problem, only when the redirect.cgi is used by cpanel..

    If there is something that cpanel can do about it, it would really really great

    Quote Originally Posted by shameer

    remove permissions for usual downloading tools ( like wget lynx )
    Some of the users even uses curl to download scripts to the server .

    Thanks for your reply, Shameer

  6. #6
    Registered User
    Join Date
    Dec 2003
    Posts
    4

    Default

    Then we need to play with ld ( linker/locader )
    file open system calls are first passed through this library. We should be able to identify and filter such attacks

    http://lists.nas.nasa.gov/archives/e.../msg00027.html

    I am currently doing a project which deals with modification of ld . I will give you more information once i completed that. In the meantime , if you are confident with C and linux you should be able to implement a filter yourself.
    Best of Luck



    Cheers,
    Shameer
    Bobcares

Similar Threads & Tags
Similar threads

  1. Suggestion for CPANEL
    By jmaldrich in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-16-2008, 08:49 AM
  2. Cpanel Installation Suggestion
    By elsar in forum New User Questions
    Replies: 3
    Last Post: 04-25-2008, 10:40 AM
  3. Suggestion for cpanel addition
    By i3903 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-24-2004, 04:30 AM
  4. Some suggestion for Cpanel
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-15-2002, 03:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube