hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : So Their Server got hacked...
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

So Their Server got hacked...

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 01-24-2005, 11:59 PM
Pheaton Pheaton is offline
Web Hosting Master
 
Join Date: Oct 2003
Location: Georgetown, Ontario
Posts: 1,761

So Their Server got hacked...


I'm talking to a fellow hosting company on AIM and they're asking me to fix their server. I know these guys, so I agree.

Anyways, their server got hacked, shadow file got messed up and ssh just closes connections right away, and telnet refuses a connection.

Anyway to "hack" back in without getting the datacenter involved?

__________________
·· Repeat after me... ProSupport is the best... Prosupport is... ··
ProSupport Host Support System - OUT NOW! Grab a copy yourself and see what the hype is about!
VertiHost Inc. - We run a quality business. Do you?


Reply With Quote


Sponsored Links
  #2  
Old 01-25-2005, 01:24 AM
boonchuan boonchuan is offline
Retired Moderator
 
Join Date: Mar 2004
Location: Singapore/Melbourne
Posts: 6,832
I won't recommend doing that, best to contact the datacenter and get the necessary access.

Reply With Quote
  #3  
Old 01-25-2005, 02:02 AM
eth00 eth00 is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: NC
Posts: 2,911
Well if you have secured your server there should not be

If the server is that far gone a restore/reimage is probably a very good idea. Without an IDS you don't have any clue what is screwed up.

__________________
John W
www.eth0.us

Reply With Quote
Sponsored Links
  #4  
Old 01-25-2005, 04:48 AM
dollar dollar is offline
Retired Moderator
 
Join Date: Sep 2004
Location: Flint, Michigan
Posts: 5,768
Somebody correct me if I am wrong but if the shadow file is messed up you are not going to be able to log in period. Format, re-image, start from scratch. Be sure to ask them where their remote backups are.

Reply With Quote
  #5  
Old 01-25-2005, 05:07 AM
Captian_Spike Captian_Spike is offline
Web Hosting Master
 
Join Date: Nov 2003
Location: Canada
Posts: 881
I agree, get them to re-install the entire OS. I also suggest getting it installed on a new drive, then mount the old drive and you can access data off that. This will let you examine what went wrong and it will also give you quick access to files. And makes sure you aren't missing anything from the remote backups.

Another possibility is to get the DC to put a new shadow file on the server. Its easy enough, just make sure they have a root entry. Although if you were hacked other things could have been left behind, a re-install might still be a better method.


Last edited by Captian_Spike; 01-25-2005 at 05:13 AM.
Reply With Quote
  #6  
Old 01-25-2005, 09:22 AM
eth00 eth00 is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: NC
Posts: 2,911
Quote:
Originally posted by justadollarhostin
Somebody correct me if I am wrong but if the shadow file is messed up you are not going to be able to log in period. Format, re-image, start from scratch. Be sure to ask them where their remote backups are.
You can login as single user on the physical computer and reset the password if you had a kvm or something. Over the internet you would have to exploit the server but if you had physical access would be easy.

__________________
John W
www.eth0.us

Reply With Quote
  #7  
Old 01-25-2005, 11:06 AM
belowzero belowzero is offline
Newbie
 
Join Date: Jun 2004
Posts: 20
If there's no IDS installed that will block IPs then you could try port scanning the machine to see if the hacker has left SSH running on a different port and then try and login through that port.

There may however be a root kit installed that will spawn after each login is completed (eg a trojan attached to /bin/login) but you may still get some access to the box and at least get some data off it before a rebuild.

Just an idea.

Chris

__________________
Below Zero Server Hosting

Reply With Quote
  #8  
Old 01-25-2005, 03:41 PM
Pheaton Pheaton is offline
Web Hosting Master
 
Join Date: Oct 2003
Location: Georgetown, Ontario
Posts: 1,761
Some of you are hinting towards this being our server. It's not. Our servers are secure. This was another companies server, and I don't have anything to do with how it was secured or kept secure.


Their server is tomsyer, and their response times are VERY slow. That's why I was wondering if there was any way I could get back into the server without logining in. Seems not.

Looks like they'll have to get an OS reinstall on a new drive in that case.

__________________
·· Repeat after me... ProSupport is the best... Prosupport is... ··
ProSupport Host Support System - OUT NOW! Grab a copy yourself and see what the hype is about!
VertiHost Inc. - We run a quality business. Do you?


Reply With Quote
  #9  
Old 01-25-2005, 05:07 PM
TechMicheal TechMicheal is offline
WHT Addict
 
Join Date: Nov 2003
Posts: 136
Quote:
Originally posted by belowzero
If there's no IDS installed that will block IPs then you could try port scanning the machine to see if the hacker has left SSH running on a different port and then try and login through that port.

There may however be a root kit installed that will spawn after each login is completed (eg a trojan attached to /bin/login) but you may still get some access to the box and at least get some data off it before a rebuild.

Just an idea.

Chris
Sorry, but this just irks me. IDS is detection, not prevention. Granted, there are some IDS solutions that come with minimal blocking capabilities, but these are minimal at best. If they had access to destroy the shadow file, that means it was a root compromise, and no telling what happened. I would go with the above suggestion to get the OS reinstalled from scratch and mount the old HD so that they can try to get some data back.

Pheaton: looks like you replied as I hit post reply. Good luck. I've had some issues with Savvis, as well as with Tomsyer.

Reply With Quote
  #10  
Old 01-25-2005, 05:42 PM
belowzero belowzero is offline
Newbie
 
Join Date: Jun 2004
Posts: 20
Fair enough. IDS is a generic term but I meant if the box isn't going to ban your IP for scanning it (eg running something like portsentry) then there may be a telnet or SSH daemon listening on a port that you can still get a login through. The hacks I've seen don't usually trash the shadow file but mess up the commonly used daemons used to gain a shell with.

Then at least you could recover some valuable (non-executable) data before rebuilding the box.

Chris

__________________
Below Zero Server Hosting

Reply With Quote
  #11  
Old 01-25-2005, 06:40 PM
TechMicheal TechMicheal is offline
WHT Addict
 
Join Date: Nov 2003
Posts: 136
Quote:
Originally posted by belowzero
Fair enough. IDS is a generic term but I meant if the box isn't going to ban your IP for scanning it (eg running something like portsentry) then there may be a telnet or SSH daemon listening on a port that you can still get a login through. The hacks I've seen don't usually trash the shadow file but mess up the commonly used daemons used to gain a shell with.

Then at least you could recover some valuable (non-executable) data before rebuilding the box.

Chris
Yeah, I knew what you meant, but it still bothers me. At any rate. Yeah, I can't say I have ever heard of an attack trashing the shadow file either. Emphasis on non-executable, text-file type data.

Reply With Quote
  #12  
Old 01-25-2005, 09:41 PM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
Try scanning the box for any open ports - maybe the hackers have left a way for them to get back in...

Otherwise, just reboot in single user mode and restore the shadow file from the backups (.... you do have backups right??)

PS - if you can, don't hook the server back to the internet because there may be software on there that records any new root passwords you set.... after a compromise, do a fresh install.

Best of luck!

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


Reply With Quote
  #13  
Old 01-25-2005, 09:44 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,785
Quote:
Originally posted by Pheaton
Some of you are hinting towards this being our server. It's not. Our servers are secure. This was another companies server, and I don't have anything to do with how it was secured or kept secure.


Their server is tomsyer, and their response times are VERY slow. That's why I was wondering if there was any way I could get back into the server without logining in. Seems not.

Looks like they'll have to get an OS reinstall on a new drive in that case.
well,

if you got access to ftp, and they have an old vuln kernel, you can try to exploit using php or perl. But i think thats stupid. Just get an os reload.

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
SwaggSec Hackers Release 900 Admin Credentials from China Telecom Attack Web Hosting News 2012-06-04 15:24:03
Whistleblower Site Cryptome Hacked, Infects PCs with Drive-By Exploits Web Hosting News 2012-02-14 14:48:24
Security Firm ArtSec Launches Website and Server Migration Service Web Hosting News 2011-12-09 18:43:03
Bangladeshi Hacker TiGER-M@TE Targets InMotion Hosting Web Hosting News 2011-09-26 15:24:05
Toshiba Server Breach Compromises Email Information of 681 Customers Web Hosting News 2011-07-18 17:29:46


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?