Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2009, 07:29 AM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
SOLUTION for Gumblar/IFRAME/JS hacks with stolen FTP Passwords...

I wrote a script for Cpanel + Pure FTP + Clamav installed servers.

Anti-Gumblar Protection Documentation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-07-2009, 11:26 AM
Registered User
 
Join Date: Sep 2004
Posts: 792
mtindor is on a distinguished road
Looks nice, but does clamscan really do any good detecting javascript/iframe inserts? Probably not. They can change by the minute. I'm even doubtful that clamscan is very good at catching rogue php shellcode pages.

I'd be interested in hearing what others think about clamAV's abilities to discover these things.

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-07-2009, 03:17 PM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
I'm using over 1 week and no negative point about clamav. Catched every infection...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-08-2009, 01:18 AM
Registered User
 
Join Date: Aug 2003
Posts: 67
headout
Does it catch up .cgi scripts (dark mailer etc.), who are a able to send out spam?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-08-2009, 07:33 AM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
System scanning all files while upload.

Pls send me sample files. I cant test and write here..

hidonet@gmail.com

Last edited by hidonet; 08-08-2009 at 07:40 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-13-2009, 06:23 AM
Registered User
 
Join Date: Jan 2006
Location: Assen, The Netherlands
Posts: 14
sc00zy is on a distinguished road
Doesn't this solution cause the server to have a high load and is there a chance normal ftp uploads will fail/corrupt?

Thanks
__________________
Arjan Menger
http://www.welldotcom.nl - Professionele Joomla! Design, Ontwikkeling en Hosting
http://www.joomlablog.nl - Nederlands Weblog Over Joomla!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-13-2009, 09:47 PM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
A little bit slows down ftp uploads. Waits 1 or 2 second after all uploaded files.
I have ~500 sites in one server and there is no complaint from customers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 08-13-2009, 09:49 PM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
Anti Gumblar Script UPDATED

http://www.oxio.net/anti_gumblar/ftp_clamscan.phps

Script is much more clever.

1 ) Moves infected file to the quarantine directory
2 ) If antivirus answers as NOT INFECTED for file, scans it with word scanner and scans file for gumblar like addresses ( .cn:808x/tx.cgi... etc.). Yo can add your patterns.
3 ) Changes account's password with random password
4 ) Sends you a mail about all that actions and new password
5 ) Blocks Attacker ip with firewall ( CSF, APF etc )
6 ) Kills live FTP connection of attacker

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 08-14-2009, 07:49 AM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
Quote:
Originally Posted by headout View Post
Does it catch up .cgi scripts (dark mailer etc.), who are a able to send out spam?
I've added a new wordscan function on last release.

Scans cgi, pl files too. Add your patterns you want to catch.. Pattern must be unique. If you add #!/usr/bin/perl as pattern, script blocks every perl, cgi file.

Be careful
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 08-15-2009, 10:22 AM
isputra's Avatar
Registered User
 
Join Date: May 2003
Location: Mbelitar
Posts: 592
isputra
Anyone using this Gumblar Script beside the maker ? Please give us a review here.
__________________
It's me ...... It's me ......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 08-15-2009, 10:58 AM
isputra's Avatar
Registered User
 
Join Date: May 2003
Location: Mbelitar
Posts: 592
isputra
Code:
$GLOBALS["whmhash"]        ="511e....2c";                // whm remote access key for root user
What is this mean ?

Can I install this script under /usr folder not /root folder ? I know that some configuration on ftp_clamscan.php has to be change to /usr. But is there any downside not using root folder ?
__________________
It's me ...... It's me ......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 08-15-2009, 11:23 AM
Registered User
 
Join Date: Jan 2008
Posts: 10
Bartuc is on a distinguished road
Tried on 64-bit OS, not working.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 08-16-2009, 04:44 PM
Registered User
 
Join Date: Jun 2003
Location: Bharat
Posts: 182
Vinsar
Well working fine on my cPanel 11.24.5-R37946 - WHM 11.24.2 - X 3.9, CENTOS 5.3 x86_64 standard as far as catching the attack, it quarantines the files and sends the mail, but no other actions, does not log IP, IP blocking, password change is not working.

I am running it at a different location than /root and edited the script a bit to save log at /var/log/ftp_clamscan.log

This script need PHP function shell_exec to be enabled.

Though I must say its a good job and can be made better.
__________________
Vinayak Sharma
Vinsar.Net Resell Domains
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 08-16-2009, 08:10 PM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
Quote:
Originally Posted by Vinsar View Post
Well working fine on my cPanel 11.24.5-R37946 - WHM 11.24.2 - X 3.9, CENTOS 5.3 x86_64 standard as far as catching the attack, it quarantines the files and sends the mail, but no other actions, does not log IP, IP blocking, password change is not working.

I am running it at a different location than /root and edited the script a bit to save log at /var/log/ftp_clamscan.log

This script need PHP function shell_exec to be enabled.

Though I must say its a good job and can be made better.
Thanks...

If you want another function please do not hesitate to contact me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 08-16-2009, 08:11 PM
Registered User
 
Join Date: Apr 2005
Posts: 49
hidonet is on a distinguished road
Quote:
Originally Posted by Bartuc View Post
Tried on 64-bit OS, not working.
There is no special function about 32bit or 64 bit. If php, clamav, cpanel, pure-ftpd, CSF ( or APF, or similar Firewall ) is working on your server this script works too.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
iframe / javascript hacks? jack01 cPanel and WHM Discussions 612 Yesterday 10:14 PM
Solution For Iframe Java Script Hack apscinsspl cPanel and WHM Discussions 17 10-02-2009 05:02 PM
iframe solution nileshparmar cPanel and WHM Discussions 2 04-16-2009 08:58 AM
IP addresses from IFrame Hacks noimad1 cPanel and WHM Discussions 22 01-29-2008 05:41 AM
JavaScript & IFRAME Insert Hacks Through xfercpanel dynaweb cPanel and WHM Discussions 3 09-15-2007 02:46 PM


All times are GMT -5. The time now is 08:21 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc