Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on compromised script, coppermine "gallery" in the VPS & Dedicated forum
Today i noticed a large number of outgoing emails, along with high memory usage by exim. Further investigation showed one of my clients was sending ...

  1. #1
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642

    compromised script, coppermine "gallery"

    Today i noticed a large number of outgoing emails, along with high memory usage by exim.

    Further investigation showed one of my clients was sending too many emails and most of them were bouncing back. The destination addresses seemed bogus or weird, like "dghd.com" domains which looked like they were made up randomly.

    I looked at those emails waiting in the queue and they all contained XXX related stuff, so it was obvious the account of this particular client was vulnerable and was being used to send spam. I quickly suspended the account and contacted the responsible person by phone.

    Interestingly, suexec along with open_basedir and the other protections prevented any further access to the server. Also, the attacker didn't manage to upload any custom scripts, like a remote control script.

    Detailed investigation shows that the Coppermine gallery is rather popular and full of remote exploitable bugs. One of those bugs allows a remote person to use the PHPMailer script within the gallery to send spam. The script itself is so badly written that it makes me wonder if the authors made it like that on purpose, not a single check exists in the script to prevent remote access.

    Anyway, all is ok now, the account is suspended and my client is looking for an alternative system to use in place of Coppermine.

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by thisisit3 View Post
    Anyway, all is ok now, the account is suspended and my client is looking for an alternative system to use in place of Coppermine.
    That's great! Nice going...

    I rewrote Coppermine 1.1D. If your client would like a copy, or some pointers, let me know. Hasn't been hacked yet!

    For my efforts, Coppermine Photo Gallery asked me to be on their official Dev Team (later threatened to sue me if I didn't take 1.1D out of my downloads) but I wasn't asnwering mails back then - and I was on the CPG-Nuke Team at the time (now CPG Dragonfly™ CMS) but I didn't have time for them either, and we parted company.

    Anyway, there's nothing wrong with CPG that can't be fixed! I'm surprised you don't have a How-To...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    how-to... heh

    i can't maintain every buggy software out there, i've got a real life.

    i'll take a look at your custom version.

  4. #4
    Pointy Stick Expert
    Join Date
    Nov 2002
    Posts
    143
    Quote Originally Posted by thisisit3 View Post
    i can't maintain every buggy software out there...
    I'm not suggesting one ignore code with known exploits, but why not run mod_security?

    Configured correctly, it snacks on all the common PHP exploits. Combine it with a custom fail2ban rule, and you can drop the attacker dynamically as well.

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by thisisit3 View Post
    i can't maintain every buggy software out there, i've got a real life...
    Really?!?!?

    And, what would that be - not maintaining every buggy software out there?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    Quote Originally Posted by Vin DSL View Post
    Really?!?!?

    And, what would that be - not maintaining every buggy software out there?
    hahahaha
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •