I recently started a thread about how our server got hacked. (http://www.securityfocus.com/archive...1/2003-07-07/0) One of the main themes there was whose fault was it? Some were saying it was Candid Hosting's fault, some were saying it was my fault. I've been tracking things done and have some rather disturbing info to share with you so you can hopefully not have the same thing happen to you
The exact problem: Traffic to our site from google was being redirected to a url that would attempt to download a trojan to the client.
How it happened: Candid's tech support traced it to someone writing an executable into /tmp - and said that it would be possible to do so by exploiting poorly written server side script.
What I didn't like: I write all the scripts. I was pissed (and embarrased).
How we fixed it: Recompiled apache and php. Upgraded the php. And changed some security settings. In doing so I was investigating running the domains as suexec - and realized that ccBill's scripts are actually the only scripts on our sites that I have not written. I was researching ccBills compatibility with suexec when i found this thread
If you only read one paragraph: It seems very likely that ccBill's cgi scripts open the security hole which allows the hack that happened to us. The most offending script is one called whereami.cgi - which ccbill seems to have changed the name recently to wm_000.cgi (where 000 is any number). I am setting the permissions on this script to '000' - making it unexecutable and useless. I can't see that this would fuck anything up, so you might seriously consider doing the same.
And read that thread for important details.
I'm alerting ccBill to this as well.
The exact problem: Traffic to our site from google was being redirected to a url that would attempt to download a trojan to the client.
How it happened: Candid's tech support traced it to someone writing an executable into /tmp - and said that it would be possible to do so by exploiting poorly written server side script.
What I didn't like: I write all the scripts. I was pissed (and embarrased).
How we fixed it: Recompiled apache and php. Upgraded the php. And changed some security settings. In doing so I was investigating running the domains as suexec - and realized that ccBill's scripts are actually the only scripts on our sites that I have not written. I was researching ccBills compatibility with suexec when i found this thread
If you only read one paragraph: It seems very likely that ccBill's cgi scripts open the security hole which allows the hack that happened to us. The most offending script is one called whereami.cgi - which ccbill seems to have changed the name recently to wm_000.cgi (where 000 is any number). I am setting the permissions on this script to '000' - making it unexecutable and useless. I can't see that this would fuck anything up, so you might seriously consider doing the same.
And read that thread for important details.
I'm alerting ccBill to this as well.




Comment