hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Server hacked : how can I find out how they are uploading files to my 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

Server hacked : how can I find out how they are uploading files to my 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 04-14-2007, 07:23 AM
listenmirndt listenmirndt is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Posts: 50

Server hacked : how can I find out how they are uploading files to my server?


I am being hacked & I don't know how they are getting files on my server. They are doing it on two of my domains, I suspended one and then they got it on the other. My FTP access log does not show anything suspicious..

How can I find their doorway?

Thanks for any help.

__________________
Sell Digital Goods with DigiVendor
Web Hosting Automation with PhpHostBot

Reply With Quote


Sponsored Links
  #2  
Old 04-14-2007, 07:48 AM
macooper macooper is offline
Junior Guru
 
Join Date: Mar 2004
Location: UK
Posts: 213
As you say it's your server, I assume you know which files they are uploading. Look through your webserver logs for all occurances of the filename. They may well be using a web based form rather than FTP to upload the files. Also, check the permissions on the wget command, as they may be using that (which should show in your logs).

__________________
Martin

Reply With Quote
  #3  
Old 04-14-2007, 08:24 AM
listenmirndt listenmirndt is offline
Junior Guru Wannabe
 
Join Date: Oct 2003
Posts: 50
Would it be possible to say : only allow files to be uploaded from a certain IP? (regardless of the method of upload)...

Reply With Quote
Sponsored Links
  #4  
Old 04-14-2007, 08:31 AM
macooper macooper is offline
Junior Guru
 
Join Date: Mar 2004
Location: UK
Posts: 213
It is possible to do that in php. If your using apache, it's also probably possible to do something like that with mod_security. But you can't do it at a filesystem level, so the world writable directory (if your webhost runs php as a module) would still be there and susceptible to XSS attacks if you have a vulnerable script on another domain and they can figure out the full path to your directory. To use mod_security, you would have to ask for assistance from your webhost.

__________________
Martin

Reply With Quote
  #5  
Old 04-14-2007, 12:44 PM
tsj5j tsj5j is offline
WebHosting Master
 
Join Date: Dec 2006
Posts: 4,075
You can configure a firewall to only allow FTP (port 21) from a certain IP.
After that, you should wait and see if there are any more attacks.

If there are, rule out FTP.
Proceed to disable web form uploading/limit it via PHP.
Wait again to see if there are further attacks.

The next, and probably the worst level, would be that SSH is hacked.
I would then suggest you wipe your server, since rootkits/malicious software can be easily installed.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
MochaHost Enhances Server Performance with Tomcat Native Library Accelerator Web Hosting News 2012-08-01 15:35:20
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?