Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel Users can "cd .." to the server root..

Discussion in 'Security' started by Suleiman Boutzamat, Aug 10, 2016.

  1. Suleiman Boutzamat

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    I have a fresh cPanel / WHM dedicated server with root previliges.
    I have created a normal cPanel account for my first client - No reseller, just a normal account.

    To test security, i tried to "ssh cpaneluser@clientdomain.tld" and entered the accounts password, and logged in successfully, showing the users home directory. But i then tried the "cd .." command a couple of times with no limitations until i reached the servers root folder.

    Very critical issue, i hope someone knows the answer.
     
  2. Suleiman Boutzamat

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    I think i found the solution.
    Under "Manage Shell Access", the permissions was set to "Normal". I changed it to "Jailed".

    I am still able to go to the root folder, but now i can't "ls" the content, which is okay.
    Is it possible to limit to the initial folder?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,339
    Likes Received:
    402
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might do better to select "Disabled Shell" instead. I would think most Hosting Providers wouldn't want to provide shell access at all unless the customer had a specific need for it to be enabled.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Suleiman Boutzamat likes this.
  4. Suleiman Boutzamat

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Good and secure advice. Thank you.
     
    Infopro likes this.
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,339
    Likes Received:
    402
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Happy to help. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Suleiman Boutzamat likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice