![]() |
|
virus attack on my website - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: virus attack on my website (/thread-9216.html) |
virus attack on my website - fdnyfish - 2011-11-09 I have also seemed to be attacked. I have upgraded to the oct 31, 2011 version and all seems to be fine. I had to purge image cache, then pre-catch images. The attack also places .htaccess files in all my root folders. You should check if the same happened to you. Below is what was in the .htaccess file.
ADMINISTRATOR NOTE: Code example editied because it seems to alert virus scanners virus attack on my website - acrylian - 2011-11-09 I have modifed the links in your post a little. No need to link to them, right?...;-) virus attack on my website - matt666 - 2011-11-09 Hello, I just updated to 1.4.1.5 but still the hack is active... I don't have any idea what to do next... I changed the theme from one to another. Still got this redirect from: to: http://network-teaser.ru/getup/index.php virus attack on my website - acrylian - 2011-11-09 Note that all the occurances today may not be the same issue. This can also be a "casual" hack via wrong file folder permissions. Check your htaccess file. virus attack on my website - mowgli597 - 2011-11-09 My advice (based on my experience today) would be to delete ALL the files in your zenphoto folder (except the albums and cache folders), including .htaccess. Don't copy them to your local directory first otherwise you may bring over corrupted files (I made that mistake). Then copy the new release files (1.4.1.5) in full (except albums and cache) over to your server. The reason for deleting ALL the zenphoto files at your remote site is because spurious files have been added to several folders by the hack so a simple "overwrite" in FTP, for example, won't get rid of these (again I learned this the hard way!) You'll have to re-configure zp-data/zp-config.php (or copy it from a known clean source). If you have a local theme, delete all of those files and copy them from a known good source. If you haven't got a clean copy of the files then check them all for the code noted above which may have been injected unto them: ` global $sessdt_o; if(!$s....;} } virus attack on my website - vincent3569 - 2011-11-09 I have the same feedback than other posters. html files seems to be corrupted too : ` ` could you give an advice : ADMINISTRATOR NOTE: Code example editied because it seems to alert virus scanners virus attack on my website - darkufo - 2011-11-09 Thanks Mowgli, that looks exactly like the issue I had, and I did the same as you to fix it. virus attack on my website - cjdmax - 2011-11-09 I can confirm the exact same injection problem DarkUfo has. ( http://www.zenphoto.org/support/topic.php?id=9939#post-58252 )Probably injected at ~11:00 CEST today; serves me right for procrastinating on tightening up permissions. If I am reading the injected js right it is trying to steal sessions/cookies. Make sure to remove cookies/sessions from your browser and logout/login on the webapp if you have navigated to an injected site with your browser! virus attack on my website - Guest - 2011-11-09 The user and all related content has been deleted. virus attack on my website - kocho - 2011-11-10 Does anyone else have files scatted around their server with files such as: tmp_50594xxxxxxxx.php, tmp_8285xxxxxxx.php (etc)? The files are 1.4k in size and the x's are obviously numbers. virus attack on my website - fdnyfish - 2011-11-10 I found a few and deleted them, hope they dont pop up again virus attack on my website - kocho - 2011-11-10 Just a tip, which is probably obvious, but also check your .htaccess file in the root of your directory. Not just the ones in public_html. Hope it helps someone! virus attack on my website - acrylian - 2011-11-10 We have put out updated news on all our channels now. virus attack on my website - Sponsi - 2011-11-10 I run 5 galleries within my employer's websites... and we got hacked, too, although just on one, I guess. Firefox alert + strange htaccess. OK, enough with what happened... the question is how to clean up the mess. What do you say about deleting everything apart from the albums folder + copy the table which has got the names of galleries? I have like hundreds of galleries and it would be too much for me to add names again. Can anyone from Zenphoto tell me the tables to copy? Is the way I want it to do possible at all? Installing fresh Zenphoto, copying albums, adding only the images + descriptions tables. You know what, this might be in fact a nice idea for a quick script : ) virus attack on my website - acrylian - 2011-11-10 If your database is not hacked you don't need to do aynthing. We recommend to use the database backup tool on the admin overview page frequently to be prepared. Follow the upgrade/installation instructions and don't touch the albums folder. Then all should be as before, virus attack on my website - Sponsi - 2011-11-10 So you don't think that much dirt is left after updating + deleting wrong .htaccess files? virus attack on my website - acrylian - 2011-11-10 We actually don't know what exactly these hacks did. Zenphoto.org and none of my sites were affectly. It seems at least that there were two different hacks if you read on the forum topics. It is up to you as the site manager to check if there is anything else. All we know is that the 3rd party file manager we included is probably more insecure than the issue fixed we did for 1.4.1.5. Thus is should be removed completly. virus attack on my website - Sponsi - 2011-11-10 Do you think deleting suspicious files while upgrading is enough? virus attack on my website - acrylian - 2011-11-10 I really don't know. As said we/I did not encounter hacks so far and I don't know what these might have done. If you upgrade normally all core files are replaced. It is up to you as the site manager to check other files like custom themes, the database etc. virus attack on my website - jest3r- - 2011-11-10 Here is what seems to be happening.
What to do about it? How to fix it?
If you don't have a backup you will need to delete Zen Photo completely a reinstall (make sure you delete the ajaxfilemanager directory if you reinstall)
Run these commands from the top directory on your server or hosting account: This will show you all the files on your webserver that have been infected and need to be cleaned: grep -r -H "lb11" * (looks for the string 'lb11' in every file - infected files have this inserted into them) You can substitute 'lb11' with other strongs that the hacker might have inserted into your code. For example: grep -r -H "eval(base64_decode" * Use the find command to show additional files that may have been installed on your server: find / -name tmp* Use the find command to show files that have been modified in the last day (these would be the files that have been infected or added): find . -type f -mtime -1 Look in your access log files for suspicious activity and Ban those IP addresses: cat access.log | grep ajaxfilemanager Hope this info helps ... |