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.


LinkBack URL
About LinkBacks



Reply With Quote



Bookmarks