hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hacking Sites on CPanel Server
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.)
Forum Jump

Hacking Sites on CPanel Server

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-18-2011, 06:57 PM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346

Hacking Sites on CPanel Server


Hacking Sites on CPanel Server

Recently my web site got hacked. Hacker got access to another site hosted on same server using sql injection. He created a symlink, using the symlink, he was able to hack many sites hosted on the server.

I have created a small php script to reproduce this.



{snip}



Anyone know a solution for this ?

Thanks,

Yujin

__________________
WebHostingNeeds.com


Last edited by CD Burnt; 10-18-2011 at 07:30 PM. Reason: code snip
Reply With Quote


Sponsored Links
  #2  
Old 10-18-2011, 07:32 PM
CD Burnt CD Burnt is offline
Community Liaison
 
Join Date: Jul 2001
Location: .INdiana
Posts: 2,202
don't give detailed instructions on how to hack.

__________________
Give me a ticket for an aeroplane
Ain't got time to take a fast train

Reply With Quote
  #3  
Old 10-18-2011, 07:45 PM
Tom, Tom, is offline
Aspiring Evangelist
 
Join Date: Aug 2009
Location: United Kingdom
Posts: 376
Quote:
Originally Posted by flashwebhost View Post
Hacking Sites on CPanel Server

Recently my web site got hacked. Hacker got access to another site hosted on same server using sql injection. He created a symlink, using the symlink, he was able to hack many sites hosted on the server.

I have created a small php script to reproduce this.



{snip}



Anyone know a solution for this ?

Thanks,

Yujin
Get the server looked at and secured by a professional who knows what they are doing.

__________________
.

Reply With Quote
Sponsored Links
  #4  
Old 10-19-2011, 02:09 AM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346
Quote:
Originally Posted by CD Burnt View Post
don't give detailed instructions on how to hack.
Hackers alrey know and are exploiting this.

Quote:
Originally Posted by Tom, View Post
Get the server looked at and secured by a professional who knows what they are doing.
Try the script if you got a cpanel server and see if it woorks. I tried on multiple cpanel server and exploits works.

__________________
WebHostingNeeds.com

Reply With Quote
  #5  
Old 10-19-2011, 02:10 AM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346
@CD Burnt, i see you removed the code. I want other cpanel server admins know this.

__________________
WebHostingNeeds.com

Reply With Quote
  #6  
Old 10-19-2011, 03:08 AM
CD Burnt CD Burnt is offline
Community Liaison
 
Join Date: Jul 2001
Location: .INdiana
Posts: 2,202
open a helpdesk ticket, and let the WHT admins decide.

__________________
Give me a ticket for an aeroplane
Ain't got time to take a fast train

Reply With Quote
  #7  
Old 10-19-2011, 03:11 AM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346
No problem, i understand

__________________
WebHostingNeeds.com

Reply With Quote
  #8  
Old 10-19-2011, 03:32 AM
Siterack_net Siterack_net is offline
Web Hosting Guru
 
Join Date: Apr 2010
Posts: 280
THe symlink issue is apparently an Apache issue, not a cpanel one.
THere is a long post, about this issue, right within the cpanel forums, as well. So far, there have not been any ideal suggestions for securing against this attack. I have not rechecked today. This post is a good reminder for me to do so

EDIT: Just checked the thread at cpanel.net, and nope, nothing yet

__________________
Chris Walker
http://www.siterack.net
Shared Hosting / Master Reseller / Reseller / HostReady cPanel VPS / DynaServer Adjustable VPS

Reply With Quote
  #9  
Old 10-19-2011, 03:50 AM
anon-e-mouse anon-e-mouse is online now
Community Leader
 
Join Date: Jul 2002
Location: Tasmania, Australia
Posts: 31,979
Quote:
Originally Posted by flashwebhost View Post
@CD Burnt, i see you removed the code. I want other cpanel server admins know this.
If he hadn't, another mod would have. Why you would post an exploit for (potentially) millions to have access to, is beyond me.

Reply With Quote
  #10  
Old 10-19-2011, 04:00 AM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346
Quote:
Originally Posted by Siterack_net View Post
THe symlink issue is apparently an Apache issue, not a cpanel one.
I know it is Apache. But we all use Apache in Cpanel servers.

Quote:
Originally Posted by anon-e-mouse View Post
If he hadn't, another mod would have. Why you would post an exploit for (potentially) millions to have access to, is beyond me.
I understand that. But in underground forums this is freely shared, can be downloaded as zip file (including symlink, so n00bs can use it). So this is not new to hackers. But many server admins are not aware of this (i was thinking suPHP will solve the problem, i am sure many other admins are thinking the same).

__________________
WebHostingNeeds.com


Last edited by flashwebhost; 10-19-2011 at 04:06 AM.
Reply With Quote
  #11  
Old 10-19-2011, 04:03 AM
mVPS-Simon mVPS-Simon is offline
Premium Member
 
Join Date: Mar 2002
Posts: 424
Quote:
Originally Posted by anon-e-mouse View Post
If he hadn't, another mod would have. Why you would post an exploit for (potentially) millions to have access to, is beyond me.
so while other sites freely distribute this to there own members (some granted will be used for nasty purposes), we rather keep the members of this forum in the dark?

Not sure how I feel about that, will have to think on that...

__________________
miniVPS - UK/EU Value and Premium VPS Servers!
miniVPN - UK/EU Personal VPN Service.
- Coming Soon!
Xavvo.com Innovative Hosting for Innovative People!


Reply With Quote
  #12  
Old 10-19-2011, 04:05 AM
ServerManagement ServerManagement is offline
Platinum quality
 
Join Date: Jul 2005
Location: New Jersey, US
Posts: 1,295
Since most scripts use many legit functions to do the exploit, it's hard to prevent against common script attacks without disabling almost every function. But you have to first think, how would someone get that hack script into the server to run it? The key is to prevent them from getting in to the server in the first place.

If it is a customer that wants to upload a hack and run it, it's very hard to secure against this. They already have a username/password and full access to upload anything they want and already have access to see all the server specs/versions/etc. You should carefully review and verify any customers you add and watch for any suspicious customers and do not give unnecessary access like ssh.

Now assuming none of your customers are trying to hack you, then there are several easy ways of protecting against a remote hacker from entering your server and uploading a hack script like this. Most commonly software like a firewall, modsecurity, etc., and upgrading all freeware regularly will stop most hacks from entering.

__________________
PlatinumServerManagement (also known as PSM)
The OLDEST and LARGEST server management provider in the USA, with 15+ employees and growing!
Providing quality support for OVER 14 years! Currently supporting over 3,000 servers monthly!

www.PlatinumServerManagement.com Proud member of the NJ BBB & Chamber of Commerce, and Authorized Cpanel Partner.



Last edited by ServerManagement; 10-19-2011 at 04:08 AM.
Reply With Quote
  #13  
Old 10-19-2011, 04:12 AM
flashwebhost flashwebhost is offline
Web Hosting Master
 
Join Date: Jan 2002
Posts: 1,346
Quote:
Originally Posted by ServerManagement View Post
But you have to first think, how would someone get that hack script into the server to run it?
On shared hosting users run ols scripts. It is not easy to force everyone to update to latest version. Many are lazy.

Also hacker can purchase hosting account with hacked credit card/paypal.

__________________
WebHostingNeeds.com

Reply With Quote
  #14  
Old 10-19-2011, 04:38 AM
ServerManagement ServerManagement is offline
Platinum quality
 
Join Date: Jul 2005
Location: New Jersey, US
Posts: 1,295
Quote:
Originally Posted by flashwebhost View Post
On shared hosting users run ols scripts. It is not easy to force everyone to update to latest version. Many are lazy.
That's very true, but just because it is hard to do, doesn't mean it should be disregarded as an invalid solution. The fact is that 99% of hacks come from outdated scripts. So don't just disregard it because it's not easy. This should be the main focus of all hosts.

Quote:
Originally Posted by flashwebhost View Post
Also hacker can purchase hosting account with hacked credit card/paypal.
That's also true, but that is why I said you have to verify your customers. Simply doing just a manual phone verification will eliminate probably 90% of fraud.

Just because the solutions are not easy, does not mean that there are not solutions. The topic here was how to stop these hacks, so I explained how. The reality is that one hacker can cause you to lose all of your customers. So sure it will take time to prevent it, such as monitoring, research, etc., but it is well worth it.

__________________
PlatinumServerManagement (also known as PSM)
The OLDEST and LARGEST server management provider in the USA, with 15+ employees and growing!
Providing quality support for OVER 14 years! Currently supporting over 3,000 servers monthly!

www.PlatinumServerManagement.com Proud member of the NJ BBB & Chamber of Commerce, and Authorized Cpanel Partner.


Reply With Quote
  #15  
Old 10-19-2011, 04:57 AM
ssfred ssfred is offline
Web Hosting Guru
 
Join Date: Aug 2011
Location: India
Posts: 280
A general solution to hacked sites is not possible. There can be multiple reasons for a site hack. The detection and the resolution requires a deep level analysis of logs and it is always better to have a good system admin to have a look into the issue.

__________________
Fred Bruner
Business Analyst
SupportSages.com- Bytes of Wisdom @ Work - Where guarantees and promises are made to keep!
24/7 Support with 15 mins response time & no charge guarantees


Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
What should the professional approach protecting your sites from hacking? jani Web Hosting Lounge 7 12-23-2010 07:29 PM
Hacking my sites babarami Hosting Security and Technology 4 09-04-2006 10:04 AM
Issues with Cpanel server - Suspect hacking attempts. HELP? dromano Hosting Security and Technology 11 02-15-2006 06:43 PM
Hacking server !!! not hacking accounts anymore AndyJ Hosting Security and Technology 22 01-24-2005 04:53 PM

Related posts from TheWhir.com
Title Type Date Posted
Hosting Control Panel cPanel & WHM 11.34 Release Hits Stable Tier Web Hosting News 2012-11-12 17:04:57
Video: cPanel and Attracta Talk About Integrating SEO Tools into the Hosting Control Panel Whir Tv 2012-08-31 14:10:47
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
cPanel Offers Windows Hosting Control Panel Enkompass for Free Web Hosting News 2011-10-13 17:14:16
cPanel to Launch Certification Program at cPanel Conference 2011 Web Hosting News 2011-09-21 18:15:42


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:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?