Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 15 of 15
  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default Spammer is using your cgiemail ?!!

    Hi!
    One of my servers shows high loading a few days ago, I didn't have time dealing with it at that time, I just notice that server is under high loading, I shutdown some of sites I thought might cause problems, and check this and that in the server, finally, I notice there are some mail queues in the mailQ, and each mail sents a lot of BCC to aol.com address, now I begain to realize that my server has been hijacking.

    check this page:
    http://ask-leo.com/a_spammer_is_usin...t_do_i_do.html

    I think it explain more detail.

    After I change the httpd.conf setting , remove the cgi-sys aliases and move cgiemail to another file name (maybe I should just delete it) , my server loading is quickly down to normal.

    I don't know if anyone like me has problem like this, or maybe have a better way to solve this cgiemail problem, I hope someone can share more informations to us, thanks.


    James

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    Anyone got a better idea to replace the usage of cgiemal ?

    Is there a good php script can substitute cgiemail ?
    Last edited by jameshsi; 11-13-2006 at 10:19 PM.

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    496

    Default

    Nope, but you could try ticking the box in WHM>>>> tweak settings " Silently Discard all FormMail-clone requests with a bcc: header in the subject line"

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    11

  5. #5
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    Quote Originally Posted by kernow View Post
    Nope, but you could try ticking the box in WHM>>>> tweak settings " Silently Discard all FormMail-clone requests with a bcc: header in the subject line"
    Really appreciated.

  6. #6
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    mod_security rules for catching cc and bcc header injections in other scripts can help to

  7. #7
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    A lot of form mail scripts allow you to specify who the email is to with a form field. Don't use one of those as they're really easy to hijack.

    As someone said above, use mod_security rules to make it harder to hijack form scripts on the server.

    If you run phpsuexec, you can limit the number of emails sent per account per hour, which allows you to limit damage from spammers when they hijack scripts. Not a permanent solution, but it helps.

    Also, install CSF - http://www.configserver.com/cp/csf.html - it will detect large numbers of emails going out and alert you via email.

  8. #8
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    Quote Originally Posted by verdon View Post
    mod_security rules for catching cc and bcc header injections in other scripts can help to
    Can you show me the URL for this mod_security rules ?
    Appreciated!

  9. #9
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by jameshsi View Post
    Can you show me the URL for this mod_security rules ?
    Appreciated!
    Assuming you have mod_security installed... there are a lot of rules out there. Doing a search here will bring you lots of results. Personally, these rules have been working for me and don't add too much overhead
    http://hostmerit.com/modsec.user.conf

  10. #10
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    Quote Originally Posted by verdon View Post
    ...., these rules have been working for me and don't add too much overhead
    http://hostmerit.com/modsec.user.conf
    What do u mean overhead ?
    You mean if I add too many rules, might cause server loading ?

  11. #11
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by jameshsi View Post
    What do u mean overhead ?
    You mean if I add too many rules, might cause server loading ?
    Yes, especially if you are using Apache 1.3.x. That's the trouble with the very thorough rules at gotroot.com. Rules of that volume and complexity are apparantly much better with Apache 2, but I think you're better to keep it simple with Apache 1.3

  12. #12
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    Really appreciated! I did use gotroot.com rules before you post this reply, and the loading is quite high!

  13. #13
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    I still got a question, if I should not copy all the content of your conf file, what part should I use ?

  14. #14
    ujr
    ujr is offline
    Member
    Join Date
    Mar 2004
    Posts
    294

    Default

    gotroot has a set of rules that should work fine on apache 1.3. Just make sure you don't run the apache 2-compatible-only rules, that would reek havoc.

    All in all, the rules provided at gotroot do their job quite efficiently, and although you may see a slightly higher load, you can also customize, or omit the rules that you know you will never use/need, since many of the rules are application specific. Just think of the server-based rules for Jsp Servlet, for instance... when you may not run tomcat, modresin, etc.

    Anyway, in my opinion, while it's nice to have mod-sec built into cpanel, it's not the most efficient way of running it either ... and you'll get way better performance building the install yourself. Don't use the cpanel mod_sec (IMHO).

    Also, don't forget, any reasonably 'savvy' user can disable the mod_sec with .htaccess, if you haven't prevented that in your system's config. All they'd need is:

    SecFilterEngine Off
    SecFilterCheckURLEncoding Off

  15. #15
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    783

    Default

    If running Apache 1.x you may disable .htaccess disable of mod_sec via the following:

    cd /usr/src/modsecurity-apache-1.9.1/apache1
    /usr/local/apache/bin/apxs -ci -D DISABLE_HTACCESS_CONFIG mod_security.c
    /scripts/restartsrv_httpd

Similar Threads & Tags
Similar threads

  1. cgiemail
    By ourweb in forum New User Questions
    Replies: 0
    Last Post: 10-26-2005, 10:33 AM
  2. cgiemail not available?
    By nyjimbo in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 10-16-2005, 06:34 AM
  3. Help setting up cgiemail
    By speedde in forum New User Questions
    Replies: 7
    Last Post: 08-09-2005, 01:13 AM
  4. Problems with cgiemail
    By Duff in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-30-2004, 03:54 AM
  5. cgiemail
    By thevsp in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-05-2003, 11:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube