November 29, 201015 yr Hi, This piece of code was added to all php files with header.php, the wp-login.php file and a few others. `<div id="oaupbcygq"><img width=0 height=0 src="http://coffeescorer.com/count.gif?id=4cf1d54647353435fc00a677"></div>` I have removed this code, but what does it do and where did it come from? Thanks
November 29, 201015 yr Highely likely the FTP is compromised, check the server logs The date last changed on those files will help determine when this occured It's a complicated removal as well You need to replace all passwords and affected scripts
November 29, 201015 yr Author Highely likely the FTP is compromised, check the server logs The date last changed on those files will help determine when this occured It's a complicated removal as well You need to replace all passwords and affected scripts I had a plugin installed which told me which files were changed and when, so I have luckily removed all the bad script. Phew! We had a server compromise a couple of weeks back, but on a different server. So it looks as though, all my FTP details have been stolen in one way or another..... Would you agree on that?
November 29, 201015 yr What is the plugin you say you used to advise you when the files where changed? Sounds useful!
November 29, 201015 yr Not necessarily FTP - the theme files can be edited from inside the wordpress admin area. Have a look at this guide to securing a wordpress installation.
November 29, 201015 yr Hi, This piece of code was added to all php files with header.php, the wp-login.php file and a few others. `<div id="oaupbcygq"><img width=0 height=0 src="http://coffeescorer.com/count.gif?id=4cf1d54647353435fc00a677"></div>` I have removed this code, but what does it do and where did it come from? Thanks This actually isnt doing anything, this person is just monitoring your pages. If anything he is just getting backlinks. There is no virus on this. Also wordpress is easily hackable and you can get into your wordpress and install this code through the templating system. Your server may not have been hacked, it is most likely your wordpress theme. Hope this helps
November 29, 201015 yr Author What is the plugin you say you used to advise you when the files where changed? Sounds useful! It's called WordPress File Monitor. Has come in very handy today! If I didn't have that installed a) I wouldn't have known about the file's being modified and If I did discover a dodgy file, then I wouldve had to manually go through all folders looking for modified files. This will tell you what files were modified and when! And email you.
November 29, 201015 yr Author Not necessarily FTP - the theme files can be edited from inside the wordpress admin area. Have a look at this guide to securing a wordpress installation. I have done all this beforehand!! This actually isnt doing anything, this person is just monitoring your pages. If anything he is just getting backlinks. There is no virus on this. Also wordpress is easily hackable and you can get into your wordpress and install this code through the templating system. Your server may not have been hacked, it is most likely your wordpress theme. Hope this helps Can you elaborate more on this please... I have added security to the site by various means. How can they actually gain access? The script was added to ALL themes installed.. Not just the 'live' one. Thanks
November 29, 201015 yr I have done all this beforehand!! Can you elaborate more on this please... I have added security to the site by various means. How can they actually gain access? The script was added to ALL themes installed.. Not just the 'live' one. Thanks Wordpress is well known to hackers and ever since i have known wordpress and been on there forums etc, people getting hacked is always going on with this. I am not a hacker so unfortunately i can not specify how they do this but i guess its because when you know where all files are within the wordpress script, which are not encrypted by the way. So with the right scripts you can find out the usernames and passwords to your admin panel etc. MD5 isnt hard to crack anymore as there are scripts out there that decode it. Im not sure which encryption wordpress use but i assume its md5, i doubt its anything stronger and if its weaker i would seriously change scripts.
November 29, 201015 yr Author Wordpress is well known to hackers and ever since i have known wordpress and been on there forums etc, people getting hacked is always going on with this. I am not a hacker so unfortunately i can not specify how they do this but i guess its because when you know where all files are within the wordpress script, which are not encrypted by the way. So with the right scripts you can find out the usernames and passwords to your admin panel etc. MD5 isnt hard to crack anymore as there are scripts out there that decode it. Im not sure which encryption wordpress use but i assume its md5, i doubt its anything stronger and if its weaker i would seriously change scripts. Thanks for the info. Is there a more secure alternative to WordPress out there then??
November 29, 201015 yr I would say the best thing to so is, make regular file and database backups And stay up to date on version.
November 29, 201015 yr Author I would say the best thing to so is, make regular file and database backups And stay up to date on version. Very true. Although at work, we have over 20 WP sites to look after, which grows now and again... Gets a little tricky updating!!
November 29, 201015 yr Not sure how easy is to do? Maybe create a script or something on the server to make automatic backups? (datebases, hosted files)
November 29, 201015 yr It is true that wordpress does suffer from regular hacking. Having said that, it's worth remembering that one of the reasons for this is its popularity. And hacked wordpress sites are almost always a few versions out of date. I don't think you need to change from wp to something else, just follow the link I posted (above ^) about securing your installation, and you'll be fine. [edit] I just read that you've already secured your wp site as advised. Was it a current version of wp that was hacked?
November 29, 201015 yr Author The latest version.. 3.0.1 I have followed a few security fixes, as we had an attack on another two of our serves a couple of weeks ago. So I updated EVERY wp site we have, with fresh copies, plugins etc etc...
November 29, 201015 yr Author oh no... Just discovered the same coding injection on another server of ours
November 29, 201015 yr oh no... Just discovered the same coding injection on another server of ours Are you sure that the vulnerabilities are not on your server?
November 29, 201015 yr Author Are you sure that the vulnerabilities are not on your server? Well its happened 4 times now over 3 different servers, 2 different types of attack and the server guys keep blaming WP. ** Head against brick wall ** !!
November 29, 201015 yr Well its happened 4 times now over 3 different servers, 2 different types of attack and the server guys keep blaming WP. ** Head against brick wall ** !! The solution for this is: 1. Use the antivirus scanner provided at your control panel. 2. Remove all iframes detected by Anti-virus 3. Change all FTP and database passwords 4. Check your configuration file for security parameters, if you have configured and changed it according to installation instructions. 5. Diagonose with Google webmaster tools, and send request to google if they are showing "This site can be harmful" on search results. If you have any doubts mail us at webmaster@extranetworld.com
November 29, 201015 yr Author The solution for this is: 1. Use the antivirus scanner provided at your control panel. 2. Remove all iframes detected by Anti-virus 3. Change all FTP and database passwords 4. Check your configuration file for security parameters, if you have configured and changed it according to installation instructions. 5. Diagonose with Google webmaster tools, and send request to google if they are showing "This site can be harmful" on search results. If you have any doubts mail us at webmaster@extranetworld.com I do not have any cPanel access.... The server is all sorted out by our web developer who does not actually work in the same office as us. Infact a totally different city! All I have is FTP to all our sites (over300+) This is the 4th time it's happened within 2 months or so now.. FTP password have been changed in the past. This time google is not saying "Site is harmful" as before...
November 29, 201015 yr I do not have any cPanel access.... The server is all sorted out by our web developer who does not actually work in the same office as us. Infact a totally different city! All I have is FTP to all our sites (over300+) This is the 4th time it's happened within 2 months or so now.. FTP password have been changed in the past. This time google is not saying "Site is harmful" as before... Sounds to me like a server vulnerability. Tell your web developer that you want the server secured, or your sites moved. If he's any good, he'll at least investigate for you.
November 30, 201015 yr another way of making your wordpress websites a little more secure is to change your folder names to some wordpress folders and use a little php to redirect what you have changed, or just change the directories within the php coding so they direct straight to the new folder names. This way your hackers can not find the folders they know are vulnerable. i do this with some scripts. At first it is a little bit of work but once you have done it once you can simply transfer what you have done onto next website etc!! Hope this helps
December 2, 201015 yr word press, joomla.. allways hear about these getting hacked. goodluck fixing your problem :/
December 2, 201015 yr Author First, Google "hardening wordpress" and variations there-of. There are several folks who wrote some good info about how to tighten up the ship. There was a WordCamp video but I can't find it anymore. 'Cause wordpress is one leaky-ass boat. There are a lot of things you can do to make it more difficult for the casual a-hole. Some of the first is get rid of the default admin username, remove the wp version number from the header, delete a couple of files in the root of the install and then make some htaccess changes. If the sites are set up it's not easy to change the default table prefix away from the super-easy-to-figure-out wp_ but for future sites consider something less pedestrian. And, if we're not in the root of the server, we pull the wp_config file up a level. Also, on sites we don't need RSS/XML we delete all that crap too. Then there's kickass database names, usernames, & passwords. Store them somewhere (I use 1Password). Make 'em a bitch to figure out and crack. Avoid dictionary words. Now: plugins. WordPress File Monitor will send you an email when a file changes. We also use Block Bad Queries, Secure Word Press, Server Buddy, and WordPress Ultimate Security. On some (normally PW protected sites) we add LBAK User Tracking. It's fun just to look at the crazy crap people try to do. But, we really use the data to block nefarious IPs in our htaccess file. To make it recoverable we use WordPress Database Backup (all installs twice a day). If you have a copy of the installed WordPress you should be able to be back up and running in a couple of hours no matter how bad it gets. Unless of course, your server is hacked. Which leads us to: If you can work with your server guy consider removing some of the unnecessary info that is delivered in headers and error pages. It just makes it easier to hack your server and if they are in your server, well...BOHICA. And wear sunscreen. I have done the majority of the above.. But still got attacked again Hope fully this wont happen again! As for the server guys - waste of time. they just keep blaming WP and me !
Create an account or sign in to comment