Web Hosting Talk


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : cPanel / WHM - Client's Run Applications Under Linux Account Nobody
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)

 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-04-2008, 09:47 PM
TomBoy123 TomBoy123 is offline
View Beta Profile
WHT Addict
 
Join Date: Jun 2006
Posts: 116
* cPanel / WHM - Client's Run Applications Under Linux Account Nobody

Hello,

As you have probably already guessed, I am in a bit of a snag, and confused at the same time. First I would like to mention that I run the cPanel / WHM suit on my own servers for webhosting. I have just recently noticed that a client, has been able to run a full out shoutcast radio server with his webhosting.

Would the only way to block this would be to close all ports (incoming + outgoing) except for the ones that are used? I am sure there must be a way to disable this other than that.

I see this as a potential security risk, and I seek your help. I have already searched, and came up empty handed. Any help is appreciated.

Regards,
TomBoy123

Reply With Quote
Sponsored Links
  #2  
Old 10-04-2008, 10:17 PM
IPv6 IPv6 is offline
View Beta Profile
the ground beneath my feet
 
Join Date: Feb 2006
Posts: 1,108
how is he running it? do you offer ssh? do you not restrict shell commands being passed by php/

__________________
semi-retired

Reply With Quote
  #3  
Old 10-05-2008, 02:48 AM
hosting_we3cares hosting_we3cares is online now
View Beta Profile
Web Hosting Guru
 
Join Date: Aug 2008
Location: Right behind you.
Posts: 322
If you have given shell access, just make it as jailshell access. I believe, if you install CSF then it will close all ports expect the one which is mentioned in the configuration.

__________________
http://we3cares.com/
Stepped into Third year of Outsourcing with 35+ employees.
Performance exceeds expectation.


Reply With Quote
Sponsored Links
  #4  
Old 10-05-2008, 09:35 AM
TomBoy123 TomBoy123 is offline
View Beta Profile
WHT Addict
 
Join Date: Jun 2006
Posts: 116
Hello, He has no SSH access. He runs it via a PHP script, a shoutcast control panel of some sort. And that run's the application. Any ideas?

Reply With Quote
  #5  
Old 10-05-2008, 10:23 AM
Jumba Jumba is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Oct 2006
Location: Bonaire, NA
Posts: 38
Quote:
Originally Posted by TomBoy123 View Post
Hello, He has no SSH access. He runs it via a PHP script, a shoutcast control panel of some sort. And that run's the application. Any ideas?
Tell him to shut it down or suspend his account?

Reply With Quote
  #6  
Old 10-05-2008, 10:43 AM
TomBoy123 TomBoy123 is offline
View Beta Profile
WHT Addict
 
Join Date: Jun 2006
Posts: 116
Hey. Already did. But if he can do it, all client's can. cPanel must have a option to disable this, but I cannot find it.

Reply With Quote
  #7  
Old 10-05-2008, 10:55 AM
FS - Mike FS - Mike is offline
View Beta Profile
cd /home/bed/
 
Join Date: Jun 2006
Location: Devon, UK
Posts: 1,305
You could try suPHP (which you select in PHP Configuration). The other option is to manually edit the php configuration and disable any functions which relate to SSH.

I would highly recommend you install CSF.

Mike

__________________
| FragSwitch: Specialist Community Hosting.
| Looking to set up your own forums or community site? We can help!

Reply With Quote
  #8  
Old 10-05-2008, 10:58 AM
Patrick Patrick is offline
View Beta Profile
FreeBSD Powered
 
Join Date: Mar 2003
Location: Canada
Posts: 5,580
Wait, was this process running in the background as a daemon or was it occasionally running only when accessed via the website? I mean if you did a ps aux via SSH, did it show their process and if so what was it called - if you remember?

You mentioned it was running as nobody, if you're looking for an easier way to identify who's running what, consider using EasyApache to upgrade to suPHP but be warned that some scripts may require different permissions and will not function until they are manually fixed. It can be a major pain in the arse to upgrade a server with many accounts to suPHP, but I think it's worth it from a security / accountability standpoint. Of course running something like Suhosin (alternative to suPHP) may provide better security, but I still prefer suPHP at the end of the day.

As for stopping it, are you even sure he was streaming from your server and that this wasn't just a control panel?

__________________

SYN Hosting - Affordable, Reliable & Secure

FreeBSD -/- cPanel -/- RVSkin -/- RVSiteBuilder Pro
http://www.synhosting.com - New Website Coming Soon!

Reply With Quote
  #9  
Old 10-05-2008, 07:22 PM
linux-tech linux-tech is offline
View Beta Profile
Temporarily Offended
 
Join Date: Sep 2002
Location: inside your network
Posts: 7,147
Using suphp is a pretty lame answer to this problem, as is disabling php functionality.

There are a few ways to address this:

Firstly, you can insist that the client obtain a dedicated IP address, if the only thing you're worried about is bandwidth. Once that's done, let them start it up normally (through SSH).

Secondly, you can install and manage a firewall. This will block access on ports which are not directly approved by yourself.

Thirdly, you can put in suhosin, which will stop most attacks on your server. This won't exactly stop this, but it will stop nasty stuff from getting in your server.

In the end, there's nothing wrong with running shoutcast, as long as the bandwidth used is accounted for. This is why option #1 is the recommended route. Let them use up their bandwidth, make more $ from them when they have, it's a win/win situation.

__________________
<?php
print("insert random signature here");
print("witty links go in here");
print("custom funny advert here");

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement: