Hmm. Even though I removed the php code from the top of the index.php and index-ajax.php files the injected script at the end of the pages is still appearing!
Thing is, I’ve got register globals set to off on all my sites.
I’m currently reinstalling the sites, hopefully that will sort it out. Luckily ModX itself seems to have protected all the spam from appearing by giving me a parse error on the site itself when viewed.
I’m on shared hosting. I was on 9.6.1.p2 and was literally about to upgrade it all to 9.6.3. I’ve been so busy recently I hadn’t had a chance until now. At the moment I am reinstalling both sites. The hackers didn’t manage to touch anything inside the Manager folder so my SQL passwords should be safe. But I am changing all the login details anyway to be on the safe side.
Yes, I am on shared hosting on Host Gator.
Thanks ganeshXL
I am no programmer, what does this script attempt to do? With the caveat that I do not know what I am talking about, it looks to me as if they have got in through TinyMCE looking at that though.
Also, aside from the PHP files would there be any way they could have added anything funny to the headers of any of my image files? Or would I need to upload all of them again as well?
I’m not sure what that directory was set to as I deleted it as part of my reinstallation of the other sites. However I have looked at my other ModX installations after putting the affected sites to 9.6.3 and that directory is set to 755.